Update operator_spaceship__const_reference.c++20.cpp

This commit is contained in:
Ian Connor 2023-09-28 12:37:52 +10:00 committed by GitHub
parent 914e634a4c
commit 39ed357e30
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,3 +1,4 @@
#if __cplusplus >= 202002L
#include <compare>
#include <iostream>
#include <nlohmann/json.hpp>
@ -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