4
I got the community version of Visual Studio 2013 and I thought that c++11 was supposed to be enabled by default.
However, the macro __cplusplus
has a value of 199711L (c++98) rather than 201103L (c++11). Furthermore, if I try to run c++11 specific code (likeconstexpr int a = 5;
) it gives an error in the compiler. How do I enable c++11?
2
As of June 20, 2016, the bug reported to Microsoft has been closed and deferred.
– tom_mai78101 – 2016-06-20T18:18:07.653__cplusplus
is still 199711L at this time. Using Visual Studio 2015 Update 2.