From 40307a937c6537d89a9346433f4e4278f983fb8d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jean-Micha=C3=ABl=20Celerier?= Date: Thu, 7 Mar 2024 16:21:56 -0500 Subject: [PATCH] is_literal_type: always use intrinsinc --- test/main.cpp | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/test/main.cpp b/test/main.cpp index 5692284..cbb7fc3 100644 --- a/test/main.cpp +++ b/test/main.cpp @@ -54,21 +54,10 @@ Distributed under the Boost Software License, Version 1.0. retcode = 1; \ } -#if defined(__clang__) || defined(_MSC_VER) template struct is_literal_type { static constexpr bool value = __is_literal_type(T); }; -#elif defined(__GNUC__) -#pragma GCC diagnostic push -#pragma GCC diagnostic ignored "-Wdeprecated-declarations" -template struct is_literal_type -{ - static constexpr bool value = std::is_literal_type::value; -}; -#pragma GCC diagnostic pop -#error "Don't know how to implement is_literal_type" -#endif // An error coding with multiple success values enum class Code : size_t