diff --git a/docs/examples/operator_spaceship__scalartype.c++20.cpp b/docs/examples/operator_spaceship__scalartype.c++20.cpp index ebb5b4349..9af1cc0d4 100644 --- a/docs/examples/operator_spaceship__scalartype.c++20.cpp +++ b/docs/examples/operator_spaceship__scalartype.c++20.cpp @@ -1,3 +1,4 @@ +#if __cplusplus >= 202002L #include #include #include @@ -38,3 +39,4 @@ int main() std::cout << number << " <=> " << nan << " := " << to_string(number <=> nan) << '\n'; // *NOPAD* std::cout << string << " <=> " << 17 << " := " << to_string(string <=> 17) << '\n'; // *NOPAD* } +#endif