U++ framework
Do not panic. Ask here before giving up.

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 Go to previous message
idkfa46 is currently offline  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

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Stacked column chart
Next Topic: Issue encountered building U++...
Goto Forum:
  


Current Time: Mon Oct 12 10:00:53 GMT+2 2026

Total time taken to generate the page: 0.16156 seconds