From 25ab83305208abd0b5f89f18ba298a87b7733c58 Mon Sep 17 00:00:00 2001 From: makise-homura Date: Mon, 15 Jan 2024 03:10:19 +0300 Subject: 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. --- Utilities/cmcppdap/include/dap/any.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 T& any::get() const { - static_assert(!std::is_same(), + static_assert(!std::is_same::value, "Cannot get nullptr from 'any'."); assert(is()); return *reinterpret_cast(value); -- cgit v0.12