Home » Community » Coffee corner » C++11
Re: C++11 [message #36652 is a reply to message #34034] |
Sun, 24 June 2012 09:51   |
|
Hi everyone,
Allan McRae (one of the major devs of Arch Linux) wrote a series of nice and short articles about C++11 features. They're written for average joe programmer and I learned quite some new thing from them about the new standard. I really recommend them to anyone who haven't yet had the time yet to study C++11 changelist 
From the features discussed in the first 5 articles, two would be IMHO useful for U++:
Initializer lists would be definitely a neat feature to have in U++ containers. We could than write things like "Vector v {10,3,12,8};" instead of "Vector v; v.Add(10); v.Add(3); v.Add(12); v.Add(8);". And if I understand correctly, we could also add some methods to do stuff like "v.Add({10,3,12,8});". The initializer_list works little bit similar to tuple, but it is syntactically much simpler and readable. It should be pretty easy to implement in U++, with backward compatibility assured by a flag.
Extern templates could speed up U++ compilation. The speedup should be significant for non-BLITZ case and probably noticeable even with BLITZ on. There might be however problems to implement a backward compatible usage of the extern templates...
As for the compiler support: GCC and Clang support is very good. I don't know about MSVC...
Best regards,
Honza
|
|
|
 |
|
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: Tue Apr 29 16:04:15 CEST 2025
Total time taken to generate the page: 0.01138 seconds
|