From 3f1842a89e477e666cad6b1d3313de3468670889 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrgen=20Hunold?= Date: Sat, 10 Apr 2010 17:50:26 +0000 Subject: [PATCH] Dummy-Constructor only for gcc > 4. [SVN r61185] --- include/boost/concept_check.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/boost/concept_check.hpp b/include/boost/concept_check.hpp index f051c72..7ee3036 100644 --- a/include/boost/concept_check.hpp +++ b/include/boost/concept_check.hpp @@ -331,7 +331,8 @@ namespace boost f(arg); } -#if BOOST_WORKAROUND(__GNUC__, BOOST_TESTED_AT(4)) +#if (BOOST_WORKAROUND(__GNUC__, BOOST_TESTED_AT(4) \ + && BOOST_WORKAROUND(__GNUC__, > 3))) // Declare a dummy construktor to make gcc happy. // It seems the compiler can not generate a sensible constructor when this is instantiated with a refence type. // (warning: non-static reference "const double& boost::UnaryFunction::arg"