Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

C++0x

Name: Anonymous 2010-07-16 21:04

Anyone started to learn C++0x yet? I've been learning this past few hours, there's quite a lot of extra stuff here, the C++0x Final Committee Draft is twice as big as the original C++98 spec. Most of it is library additions.

Overall it looks like it fixes a lot of shortcomings with C++ currently and will be a help if you're already an expert. But it also looks like there will be a lot more here to shoot yourself in the foot with if you're a beginner.

I wonder if C++0x will be well received or will only end up fracturing existing C++ communities.

Name: Anonymous 2010-07-18 6:46

>>28
This compiles and prints out what you would expect.

if (nullptr == 0) {
   std::printf("Expert Sepplesox Programmers\n");
}


However, this will generate a compilation error:

int x = 0;
if (nullptr == x) {
   std::printf("Expert Sepplesox Programmers\n");
}


The '0' literal can still be implicitly cast to a nullptr_t. Some semblance of backwards compatibility is maintained. If you understand the C++ type system, it makes sense.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List