Dummy-Constructor only for gcc > 4.

[SVN r61185]
This commit is contained in:
Jürgen Hunold
2010-04-10 17:50:26 +00:00
parent 0eac9e329b
commit 3f1842a89e

View File

@ -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<YourClassHere>::arg"