I would like to enable C ++ 0x support in GCC using -std=c++0x . I absolutely do not need any of the currently supported C ++ 11 features in GCC 4.5 (and soon 4.6), but I would like to start getting used to them. For example, in several places where I use iterators, the auto type would be useful.
But then again, I don't need any of the features currently supported. The goal here is to encourage me to include the features of the new standard in my programming vocabulary.
From what you know about C ++ 11 support, it’s useful to include it in GCC and then cover it with, for example, switching from boost::shared_ptr to std::shared_ptr only as two don’t mix?
PS: I know this good question , which compares the different tastes of shared_ptr , but I ask for a higher level of advice that I need to use before the standard ends. Another way to express this, when a compiler like GCC says it supports an “experimental function”, does this mean that I may encounter strange compilation errors, which will be the main time streams and the source of cryptic questions in StackOverflow?
Change I decided to switch from std::shared_ptr because I just do not trust its support in GCC 4.5 as shown in the example in this question .
c ++ boost c ++ 11 stl shared-ptr
Alan Turing Jun 12 2018-11-12T00: 00Z
source share