Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » Community » U++ community news and announcements » New pick/clone notation now merged into trunk
New pick/clone notation now merged into trunk [message #42463] Mon, 17 March 2014 10:37 Go to next message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
As announced previously in development blog

http://www.ultimatepp.org/forum/index.php?t=msg&th=8448& amp;start=0&

U++ now changes controversial "default pick" behaviour. The new "pick" is described here:

http://www.ultimatepp.org/srcdoc$Core$pick_$en-us.html

Being there, I have added some missing features:

Containers now have ToString (if elements support AsString), which returns the content of container in single line.

Containers support operator==/!= if elements support operator==.

Containers support SgnCompare and < > <= >= if elements support SgnCompare.

Tuples now support coversion to tuple of another type of same number of elements

Tuple2<double, double> x = MakeTuple<int, int>(1, 2);


Tie (C++11 inspired) can be used to assign tuple to variables

int x, y;
Tie(x, y) = MakeTuple(1, 2);


Value now supports < > <= >= comparisons.

In the same time I apologize for delays in applying patches, I did not wanted too many merge conflicts....


Re: New pick/clone notation now merged into trunk [message #42464 is a reply to message #42463] Mon, 17 March 2014 10:38 Go to previous message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
P.S.: The change is backward compatible, when compiling with C++03, both new and old (that is, default pick) notations work.
Previous Topic: WARNING: revisions 6976-6984 are unstable
Next Topic: New graph packages
Goto Forum:
  


Current Time: Fri Mar 29 06:40:39 CET 2024

Total time taken to generate the page: 0.01636 seconds