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