From f75413b14add33a0f6a32a58a24de21e1ea00f50 Mon Sep 17 00:00:00 2001 From: Peter Dimov Date: Sat, 12 Feb 2022 18:30:06 +0200 Subject: [PATCH] Add a workaround for GCC 4.4 to protect.hpp --- include/boost/bind/protect.hpp | 2 +- test/protect_test2.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/boost/bind/protect.hpp b/include/boost/bind/protect.hpp index e251129..ef26fe9 100644 --- a/include/boost/bind/protect.hpp +++ b/include/boost/bind/protect.hpp @@ -22,7 +22,7 @@ namespace boost namespace _bi { -#if !defined(BOOST_NO_CXX11_VARIADIC_TEMPLATES) && !defined(BOOST_NO_CXX11_RVALUE_REFERENCES) && !defined(BOOST_NO_CXX11_DECLTYPE) +#if !defined(BOOST_NO_CXX11_VARIADIC_TEMPLATES) && !defined(BOOST_NO_CXX11_RVALUE_REFERENCES) && !defined(BOOST_NO_CXX11_DECLTYPE) && !(defined(BOOST_GCC) && BOOST_GCC < 40600) template struct protect_make_void { diff --git a/test/protect_test2.cpp b/test/protect_test2.cpp index 0c29500..8da8405 100644 --- a/test/protect_test2.cpp +++ b/test/protect_test2.cpp @@ -36,7 +36,7 @@ int main() { test( boost::protect( X() ) ); -#if !defined(BOOST_NO_CXX11_VARIADIC_TEMPLATES) && !defined(BOOST_NO_CXX11_RVALUE_REFERENCES) && !defined(BOOST_NO_CXX11_DECLTYPE) +#if !defined(BOOST_NO_CXX11_VARIADIC_TEMPLATES) && !defined(BOOST_NO_CXX11_RVALUE_REFERENCES) && !defined(BOOST_NO_CXX11_DECLTYPE) && !(defined(BOOST_GCC) && BOOST_GCC < 40600) test2( boost::protect( Y() ) );