Visual Studio 2015 Preview is now available, so here’s an updated feature table for the Core Language:
C++11 Core Language Features |
VS 2013 |
VS 2015 Preview |
Notes |
Partial |
Yes |
||
No |
Yes |
||
Partial |
Partial |
[1] |
|
Yes |
Yes |
||
Partial |
Partial |
[1] |
|
Yes |
Yes |
||
Yes |
Yes |
||
Yes |
Yes |
||
Yes |
Yes |
||
Yes |
Yes |
||
Yes |
Yes |
||
Yes |
Yes |
||
No |
No |
||
Yes |
Yes |
||
Yes |
Yes |
||
Yes |
Yes |
||
Yes |
Yes |
||
Yes |
Yes |
||
No |
No |
||
No |
Partial |
[2] |
|
Partial |
Yes |
||
Yes |
Yes |
||
No |
Yes |
||
Yes |
Yes |
||
No |
Yes |
[NEW] |
|
No |
Yes |
[NEW] |
|
Yes |
Yes |
||
No |
No |
||
No |
Yes |
||
Yes |
Yes |
||
Partial |
Yes |
||
Yes |
Yes |
||
No |
Yes |
||
No |
Yes |
||
No |
Yes |
||
Yes |
Yes |
||
Yes |
Yes |
||
Yes |
Yes |
||
Yes |
Yes |
||
No |
Yes |
||
C++11 Core Language Features: Concurrency |
VS 2013 |
VS 2015 Preview |
Notes |
Yes |
Yes |
[3] |
|
Yes |
Yes |
||
Yes |
Yes |
||
Yes |
Yes |
||
Yes |
Yes |
[3] |
|
Yes |
Yes |
||
No |
No |
||
Yes |
Yes |
||
No |
Yes |
||
No |
No |
||
Partial |
Yes |
||
No |
Yes |
||
C++11 Core Language Features: C99 |
VS 2013 |
VS 2015 Preview |
Notes |
Partial |
Yes |
||
Partial |
Partial |
[4] |
|
Yes |
Yes |
||
N/A |
N/A |
[5] |
|
C++14 Core Language Features |
VS 2013 |
VS 2015 Preview |
Notes |
Yes |
Yes |
[6] |
|
No |
Yes |
[NEW] |
|
No |
Yes |
||
No |
Yes |
||
No |
Yes |
[NEW] |
|
No |
No |
||
No |
No |
||
No |
No |
||
No |
No |
||
No |
No |
||
No |
Partial |
[7] |
|
No |
RTM |
[8] |
|
C++1z (C++17?) Core Language Features |
VS 2013 |
VS 2015 Preview |
Notes |
No |
No |
[9] |
|
No |
No |
||
No |
No |
||
Yes |
Yes |
[10] |
|
No |
No |
||
N4259 std::uncaught_exceptions() |
No |
No |
[11] |
N4261 Fixing qualification conversions |
No |
No |
|
N4266 Attributes for namespaces and enumerators |
No |
No |
|
N4267 u8 character literals |
No |
No |
|
N4268 Allowing more non-type template args |
No |
No |
|
N4295 Fold expressions |
No |
No |
Notes: [NEW] Implemented after the CTP3 table was published. [1] NSDMIs and initializer lists were previously listed as Yes, but have been downgraded to Partial. After users encountered silent bad codegen when using braced-init-lists in NSDMIs and mem-initializer-lists, the compiler team blocked these broken scenarios with a compiler error C2797. This VCBlog post published in August has more info, and this is planned to be completely fixed in 2015 RTM. [2] C++11 constexpr support is still Partial; one major limitation is that it doesn’t exhibit “optional” behavior on function templates, which the Standard Library extensively relies on. (For example, plus<T>’s function call operator is marked constexpr in the Standard. This allows plus<int> to be used in constant expressions, even though plus<string> allocates memory which totally disqualifies it from being a constant expression.) Other limitations: literal class types are partially supported, array literals and aggregate literals aren’t supported yet, and N4140 12.1 [class.ctor]/5’s rule about making implicitly-defined default constructors automatically constexpr hasn’t been implemented yet. [3] I previously listed C++11’s reworded sequence points and memory model as Not Applicable, which continually confused readers. I’m now listing them as Yes because they are indeed implemented, although the compiler team didn’t have to do anything to achieve that. (These papers clarified C++11’s interaction with multithreading, but VC supported multithreading long before the Standard did.) [4] C99 preprocessor support is listed as Partial because variadic macros are supported, but the compiler team is aware of a significant number of bugs in this area. [5] Extended integer types are truly Not Applicable. Implementations are permitted but not required to have such types, and VC doesn’t have them. Saying either Yes or No would be inaccurate, hence N/A. [6] We previously listed “Tweaked wording for contextual conversions” as No, but it’s now listed as Yes for both 2013 and 2015 Preview. After looking at it, we realized that this feature relaxed overly-strict rules that VC never implemented in the first place. Yay, conformance! :-> [7] Sized deallocation was previously listed as Yes, because I mistakenly believed that only library support was required, and that compiler support was optional. Compiler support is actually necessary, so this is now listed as Partial. [8] Digit separators have been implemented, but they were checked in just after Preview branched. They’ll be available in 2015 RTM. [9] The “new rules for auto with braced-init-lists” have been implemented and are almost ready to be checked in. They’ll be available in 2015 RTM, barring catastrophes like asteroid impacts or the Committee changing its mind. [10] Both 2013 and 2015 Preview default to disabling trigraphs, which is now conformant according to C++17. [11] std::uncaught_exceptions() is listed here as an honorary Core Language feature because the Core Working Group put it up for a vote. I might change this in the future. (Other library features like exception_ptr are listed here, but that was because I followed GCC’s tables for easy comparisons.) Additionally, the papers N4262 “Wording for Forwarding References” and N4285 “Cleanup for exception-specification and throw-expression” were voted into C++17, but they’re purely editorial, so they aren’t listed in this feature table. Stephan T. Lavavej Senior Developer – Visual C++ Libraries
0 comments