The new standard will provide for all the normal threading functionality, such as threads and thread-local storage and atomic operations. It will also include an interesting set of features, futures and promises.
The basic idea of futures and promises is that you can write code that says, "this object, a future, stands for a result that hasn't been computed yet" and the work to compute the value can take place in the background. When the value is needed, you ask the future for it; if the value is ready, you get it; if not, you wait. Nonetheless, they are still valuable if you're working on a project where you can control the choice of compiler and set of language features.
This, of course, isn't a shining example of where auto is really useful. Auto really comes into its own when working with templates and especially the STL.
Why is that? Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support. The options allow you to disable support for certain new language and library features: ones that may break your existing code that conforms to a particular version of the language standard. For more information, see Preprocessor Macros. It's available starting in Visual Studio Update 3.
This option disables compiler and standard library support for features that are changed or new in more recent versions of the language standard. This option is available starting in Visual Studio version Available starting in Visual Studio version This option is available starting in Visual Studio Update 3.
We recommend you use the latest version of Visual Studio for maximum standards conformance. From looking at the list, you can see that 4. Using Cygwin is also an option I guess.
As for MSVC, don't even think about any version before Another important consideration is the standard library support. On GCC, it is pretty close to complete except for the things that rely on unsupported language features, and other the notable unsupported libraries are Regex and Future. However, good news! MSVC11 will feature an almost complete standard library support, although major language features will still be lacking.
And this comment on it is also very interesting. You all have my full gratitude. I was actually hoping the GCC is available on Windows but i guess i didn't do enough research. Anyway thanks. Chris, whether a question is a duplicate has nothing to do with its answers. If you think the answers to the other question are lacking, you can fix it by adding your own answer. Add a comment. Active Oldest Votes. Improve this answer.
Glorfindel Josh Kelley Josh Kelley I'm afraid gcc is probably the best you're going to get at this stage. Charles Ma Charles Ma 43k 21 21 gold badges 83 83 silver badges 99 99 bronze badges. But the Comeau compiler has always been good. Faisal Vali Faisal Vali Chris Jester-Young Chris Jester-Young k 44 44 gold badges silver badges bronze badges.
0コメント