Home » Community » Coffee corner » C++11
Re: C++11 [message #34072 is a reply to message #34034] |
Fri, 14 October 2011 12:18 |
|
mirek
Messages: 13975 Registered: November 2005
|
Ultimate Member |
|
|
Mindtraveller wrote on Wed, 12 October 2011 05:20 | http://en.wikipedia.org/wiki/C%2B%2B11
New version of C++ is finally out.
What do you think about it?
Will it change anything in how we use U++?
|
Unlikely. The closest thing that might have been useful for us is r-value references, which has the potential of replacing pick_. Unfortunately it does not compose, so directly replacing pick_ with && would break existing code. I do not know, MAYBE it would be worth it, after all there is only a couple of places where composition of pick is really used, OTOH fixing them would be pretty annoying.
What I mean by composition:
struct Foo {
int a;
Vector<int> foo;
};
in U++, this struct has well defined computer generated pick constructor and pick assignment.
Would pick_ be replaced by &&, it would have neither. Programmer would have to define special Foo(&&) constructor and operator=(&&). With some structs with dozen members, it would be tedious and error-prone.
Mirek
|
|
|
|
|
C++11
|
|
|
Re: C++11
By: mirek on Fri, 14 October 2011 12:18
|
|
|
Re: C++11
By: lectus on Sat, 03 December 2011 12:03
|
|
|
Re: C++11
|
|
|
Re: C++11
By: Lance on Sun, 02 December 2012 15:08
|
|
|
Re: C++11
|
|
|
Re: C++11
By: Lance on Sun, 02 December 2012 18:05
|
|
|
Re: C++11
By: Lance on Sun, 02 December 2012 18:47
|
|
|
Re: C++11
By: Lance on Sun, 02 December 2012 19:30
|
|
|
Re: C++11
|
|
|
Re: C++11
By: Lance on Sun, 02 December 2012 21:00
|
|
|
Re: C++11
By: mirek on Mon, 03 December 2012 11:04
|
|
|
Re: C++11
By: mirek on Mon, 03 December 2012 11:10
|
|
|
Re: C++11
By: Lance on Tue, 04 December 2012 00:55
|
|
|
Re: C++11
By: mirek on Tue, 04 December 2012 08:08
|
|
|
Re: C++11
By: Lance on Tue, 19 March 2013 03:24
|
|
|
Re: C++11
|
|
|
Re: C++11
By: mirek on Sun, 24 June 2012 12:50
|
|
|
Re: C++11
By: unodgs on Sun, 24 June 2012 13:02
|
|
|
Re: C++11
By: mirek on Sun, 24 June 2012 13:13
|
|
|
Re: C++11
By: unodgs on Sun, 24 June 2012 13:21
|
|
|
Re: C++11
|
|
|
Re: C++11
By: lectus on Wed, 27 June 2012 01:29
|
|
|
Re: C++11
By: mirek on Thu, 28 June 2012 08:16
|
|
|
Re: C++11
By: Lance on Sun, 02 December 2012 06:18
|
Goto Forum:
Current Time: Mon Apr 29 13:35:30 CEST 2024
Total time taken to generate the page: 0.03086 seconds
|