2

I tought my VS 2015 use the new C++11 compiler version. Does I have missed somewhat? I tried different Platform Toolset: v90 ..v140. None helps.

Used code to check the C++ compiler version: How to get the C++ version

#include <iostream>

//  Print the current used C++ version
int main()
{
  int version = __cplusplus;
  if (__cplusplus == 201103L) std::wcout << "C++11\n";
  else if (__cplusplus == 199711L) std::wcout << "C++98\n";
  else std::wcout << "pre-standard C++\n";
}

The console output is: C++98 for all Plattform Toolset

DevSolar
  • 63,860
  • 19
  • 125
  • 201
Tom Tom
  • 1,001
  • 9
  • 20

0 Answers0