Home » Community » Newbie corner » again... use if deleted function :?
Re: again... use if deleted function :? [message #49328 is a reply to message #49325] |
Sat, 27 January 2018 19:11  |
idkfa46
Messages: 155 Registered: December 2011
|
Experienced Member |
|
|
Thank you Klugier!
I applied the following changes too:
template<class T> void SortDurata(VectorMap<int, T> &Load)
{
//Riordina VectorMap in ordine crescente - durata di carico
Vector<int> keys = Load.PickKeys();
Vector<T> values = Load.PickValues(); <<< OLD "Load.GetValues()"
IndexSort(keys, values);
Load.Clear();
Load = VectorMap<int, T>(pick(keys), pick(values)); <<< OLD "VectorMap<int, T>(keys, values)"
<<< why i need pick() here ?????????
}
I'm agree with you and I'm so sorry for the code not always in English. I wrote it year ago and now I have thousand rows to update.
Sure I'll take it in consideration for the next project!
Thanks,
Matteo
|
|
|
Goto Forum:
Current Time: Sun Jul 06 05:01:40 CEST 2025
Total time taken to generate the page: 0.03588 seconds
|