开发者

What do I need to know about C++0x? [duplicate]

This question already has answers here: Closed 12 years ago.

Possible 开发者_StackOverflow中文版Duplicate:

Where can I learn more about C++0x?

I am fairly familiar with C++03 but I still need to come to terms with C++0x so I would like to read some fairly digestible information on C++0x.

I have looked at the Wikipedia but I am on the look out for something that is more readable. So is there a book or series of blog entries that provide a nice introduction to the matarial?


There is a ton of stuff on this very site - some of the posts include very informative discussion. I would point you to Google but it's going to be more efficient to search in C++0x tagged posts here imo.

Here's a good one to start with, which includes indirection to Stroustrup's own summary. Scott Meyers has presentation materials on the topic here.

Check up on your favourite compiler's support for the new version. Microsoft VC10 support is summarized here. GCC info can be found here.

Official state of the standard for the language is available here. Evolution of the language is in many places tied to ongoing work in Boost. See here for some info on that.

Honestly my preference these days is to look here for 99% of needed info rather than resort to a book.


It's too early for a book. The standard isn't fixed yet.

Now, if you think wikipedia is hard to read, you might try Stroustrup's page about it. However it might seem harder to read to some.


There's a good tutorial on codeproject here for VC++. Even if you aren't using Visual Studio though it's still useful.


Learn whatever feature you would have loved having in C++98 in the first place. For me, it was variadic templates, lambda functions, decltype and other cool stuff.

If you still don't know what to learn first, maybe you should try to understand what issues from the C++98 are adressed. I say this because all the xvalue, move semantics and al stuff is quite heavy to grasp if you don't know what the problems were (and still are btw). This may imply learning some more C++98 first.

Then, you can always browse the Wikipedia article and look at whatever you find cool. Implementors don't provide all the features yet, so you'll look like a 5 year old staring at the front window of a toy store. This is a good reason to behave like one.


I really liked this series of blog posts by the Visual C++ Team Blog:

  • The Future of the C++ Language
  • Lambdas, auto, and static_assert: C++0x Features in VC10, Part 1
  • Rvalue References: C++0x Features in VC10, Part 2
  • decltype: C++0x Features in VC10, Part 3


I found the Overview of the New C++ (C++0x) book by Scott Meyers to be a good, detailed summary of the main features. It's more of a presentation with very detailed footnotes that an actual book, but it's still an excellent, short read.


I suggest you using the book functionality of Wikipedia to make it more readable/printable. I did the same for the C++0x page.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜