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() ) );