Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r61185 - trunk/boost
From: juergen.hunold_at_[hidden]
Date: 2010-04-10 13:50:27


Author: jhunold
Date: 2010-04-10 13:50:26 EDT (Sat, 10 Apr 2010)
New Revision: 61185
URL: http://svn.boost.org/trac/boost/changeset/61185

Log:
Dummy-Constructor only for gcc > 4.

Text files modified:
   trunk/boost/concept_check.hpp | 3 ++-
   1 files changed, 2 insertions(+), 1 deletions(-)

Modified: trunk/boost/concept_check.hpp
==============================================================================
--- trunk/boost/concept_check.hpp (original)
+++ trunk/boost/concept_check.hpp 2010-04-10 13:50:26 EDT (Sat, 10 Apr 2010)
@@ -331,7 +331,8 @@
           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<YourClassHere>::arg"


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk