From 56c81c0b579584f01be243ae635d49bca2c18b9f Mon Sep 17 00:00:00 2001 From: Zach Laine Date: Thu, 20 Feb 2025 23:16:56 -0600 Subject: [PATCH] Use gross pointer dereference expression to implement detail::whatever converions operator, since 2/3 of the big three compilers reject the use of declval() there. --- include/boost/parser/tuple.hpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/include/boost/parser/tuple.hpp b/include/boost/parser/tuple.hpp index 15024db0..88b5e626 100644 --- a/include/boost/parser/tuple.hpp +++ b/include/boost/parser/tuple.hpp @@ -185,14 +185,10 @@ namespace boost { namespace parser { template operator T() const && noexcept { -#if defined(__GNUC__) && __GNUC__ < 13 // Yuck. std::remove_reference_t * ptr = nullptr; ptr += 1; // warning mitigation return *ptr; -#else - return std::declval(); -#endif } };