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.
This commit is contained in:
makise-homura
2024-01-15 03:10:19 +03:00
parent 59eb9ddecf
commit 25ab833052

View File

@@ -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);