From 3cb323d748ff67595f3a8dc2bbe2610200b5c541 Mon Sep 17 00:00:00 2001 From: mutouyun Date: Sat, 27 May 2023 21:22:49 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E2=80=98reinterpret=5Fcast=E2=80=99=20i?= =?UTF-8?q?s=20not=20a=20constant=20expression?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- test/imp/test_imp_utility.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/imp/test_imp_utility.cpp b/test/imp/test_imp_utility.cpp index b504482..1de8bb4 100644 --- a/test/imp/test_imp_utility.cpp +++ b/test/imp/test_imp_utility.cpp @@ -110,7 +110,7 @@ TEST(utility, countof) { TEST(utility, dataof) { struct { - constexpr int *Data() const noexcept { return (int *)this; } + int *Data() const noexcept { return (int *)this; } } sv; EXPECT_FALSE(imp::detail_dataof::trait_has_data::value); EXPECT_TRUE (imp::detail_dataof::trait_has_Data::value);