C++ Language/Preprocessing/ConditionalCompilation
Tools
General
Sister projects
In other projects
| C++ Language |
The traditional way to conditionally-compile code was to use#ifdef or#if.But the preprocessor cannot reason about types, so modern code sometimes usesif constexpr instead.
Additional information about conditional-compilation (includes interactive examples)