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
  • 67,862
  • 21
  • 134
  • 209
Tom Tom
  • 1,127
  • 11
  • 25

0 Answers0