In C++ Builder (Berlin) the editor's syntax highlighter shows nullptr as a reserved word. But when compiling I get the error:
Undefined symbol 'nullptr'
nullptr was added to the C++11 standard and as far I know, C++ Builder Berlin supports C++11. I have been browsing the C++ Compiler options but can't find anything related to selecting what C++ standard to use.
Is nullptr not supported in C++ Builder Berlin and the highlighter is just buggy? Or can I turn on C++11 support somewhere?
To be more accurate, only its Clang-based compilers support C++11. The "classic" Windows 32-bit compiler does not.
When compiling for Windows 32-bit, you can specify in the Project Options whether to use the Classic or Clang compiler. Per Embarcadero's documentation:
How to use the Clang-based compiler for Windows 32-bit projects: