C++0xCompilerSupport - Stdcxx Wiki. The New C++: Lay down your guns, knives, and clubs. Top 10 endpoint backup mistakes Single-core eaten up Sutter firmly believes that C++ must go concurrent, as the free lunch of single-core is over.
Sutter says that now is the time to establish concurrency in the standard, to make sure C++ runs efficiently and consistently everywhere. "You can [do], and people have done, just about anything in C++. The question in the standard is: 'What are you able to do that's portable? '" "The question is how have [data center and web] environments become standardized and formalized that it's time to standardize one common way of speaking to them and express those programs.
The memory model means that C++ code now has a standardized library to call regardless of who made the compiler and on what platform it's running. "When you are talking about splitting [code] across different cores that's in the standard, we are talking about the memory model. It's a small world, and more of it Those assumptions? Quicker, cleaner, Java-ier. Maybe C++ hasn’t jumped the shark after all.
A couple years ago I wrote a blog post Has C++ jumped the shark?
I wondered how many people would care about the new C++ standard by the time it came out. I doubted that it would matter much to me personally. … if something is hard to do in C++, I just don’t use C++. I don’t see a new version of C++ changing my decisions about what language to use for various tasks. The new standard is out now, and I find it more interesting that I thought I would have. When I heard about plans to add lambdas and closures to C++ I commented here that “it seems odd to add these features to C++.” One of my favorite features in Python is the ability to define functions on the fly. (You still cannot define a named function inside a C++ function. Here are a couple examples of how it can be very convenient to define little functions on the fly.
Anonymous functions can also have associated data obtained from the context where they’re defined. Related posts: Why do C++ folks make things so complicated? C++-201x Variadic Templates. C++-201x (or C++-0x as near sighted individuals like to call it) introduced a new feature called variadic templates, which allows a template class or function to recieve multiple parameters to it of various types as you would normally achieve with "...
". You could continue to use stdarg if you wish, but a limitation of it is that you have no way of knowing what type each parameter is to use with va_arg(), unless you just hard code it to only work with a specific type, or pass a type list how the printf() family of functions do it, or something similar. I always wanted a way to do func(integer, string, float, whatever), and interchange that with func(float, whatever, char), and now you can.