Update operator_spaceship__scalartype.c++20.cpp

This commit is contained in:
Ian Connor 2023-09-28 12:37:29 +10:00 committed by GitHub
parent fac07e22c5
commit 914e634a4c
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 << number << " <=> " << nan << " := " << to_string(number <=> nan) << '\n'; // *NOPAD*
std::cout << string << " <=> " << 17 << " := " << to_string(string <=> 17) << '\n'; // *NOPAD*
}
#endif