cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
Beginners
How are the __cplusplus directive define
How are the __cplusplus directive defined in various compilers?
Sep 28, 2021 at 10:18am UTC
JLBorges
(13770)
199711L (until C++11), 201103L (C++11), 201402L (C++14), 201703L (C++17), or 202002L (C++20)
https://en.cppreference.com/w/cpp/preprocessor/replace#Predefined_macros
Sep 28, 2021 at 12:08pm UTC
seeplus
(6597)
Note that for MSVS, you need to configure the compiler for this. See:
https://docs.microsoft.com/en-us/cpp/build/reference/zc-cplusplus?view=msvc-160
Topic archived. No new replies allowed.