diff options
author | makise-homura <akemi_homura@kurisa.ch> | 2024-01-15 00:10:19 (GMT) |
---|---|---|
committer | makise-homura <akemi_homura@kurisa.ch> | 2024-01-16 04:41:26 (GMT) |
commit | 25ab83305208abd0b5f89f18ba298a87b7733c58 (patch) | |
tree | 49e555a3e718be3d8ce4219a4fed830add7ae445 /Utilities | |
parent | 59eb9ddecf6d504e59a77c42df3ea4a7995731c1 (diff) | |
download | CMake-25ab83305208abd0b5f89f18ba298a87b7733c58.zip CMake-25ab83305208abd0b5f89f18ba298a87b7733c58.tar.gz CMake-25ab83305208abd0b5f89f18ba298a87b7733c58.tar.bz2 |
cppdap: Use std::is_same<>::value instead of std::is_same<>() for old LCC
std::is_same<>() is not const instead of std::is_same<>::value
at least on LCC 1.21, so this produces an error. Still ()-notation
seems to be fairly equivalent functionally to ::value-notation.
Diffstat (limited to 'Utilities')
-rw-r--r-- | Utilities/cmcppdap/include/dap/any.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Utilities/cmcppdap/include/dap/any.h b/Utilities/cmcppdap/include/dap/any.h index b05f03d..6060546 100644 --- a/Utilities/cmcppdap/include/dap/any.h +++ b/Utilities/cmcppdap/include/dap/any.h @@ -159,7 +159,7 @@ any& any::operator=(const std::nullptr_t&) { template <typename T> T& any::get() const { - static_assert(!std::is_same<T, std::nullptr_t>(), + static_assert(!std::is_same<T, std::nullptr_t>::value, "Cannot get nullptr from 'any'."); assert(is<T>()); return *reinterpret_cast<T*>(value); |