Why so green and lonely? Everything's going to be alright, just you wait and see.

Thursday, November 09, 2006


C++0x, the next C++ language standard, is coming...
Oh man, I can't wait to be able to write C++ code like this!
   template<class T> using Vec = vector<T,My_alloc<T>>;
Vec<double> v = { 2.3, 1.2, 6.7, 4.5 };
for(auto p = v.begin(); p!=v.end(); ++p)
cout << *p << endl;
I especially like the new concepts language feature and how it's better than restricting through inheritance (Java and C# generics). I could never believe anyone would make a language where basic types (int, double) were treated fundamentally differently from classes (everything derived from Object? Pfft). Too bad we'll have to wait three years before the standards are accepted.

Look at all the good stuff potentially coming to C++ in the official C++0x wish list.


Post a Comment

<< Home