From e163aeb563bcf6a90797ee1a128e2219d533ee5e Mon Sep 17 00:00:00 2001 From: Peter Dimov Date: Sat, 7 Jul 2007 17:22:26 +0000 Subject: [PATCH] Use object placeholders for g++ 4.1+, reported and PCH-tested by Daniel Walker [SVN r38164] --- include/boost/bind/placeholders.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/boost/bind/placeholders.hpp b/include/boost/bind/placeholders.hpp index a8098a7..43baee6 100644 --- a/include/boost/bind/placeholders.hpp +++ b/include/boost/bind/placeholders.hpp @@ -25,7 +25,7 @@ namespace { -#if defined(__BORLANDC__) || defined(__GNUC__) +#if defined(__BORLANDC__) || defined(__GNUC__) && (__GNUC__ * 100 + __GNUC_MINOR__ <= 400) static inline boost::arg<1> _1() { return boost::arg<1>(); } static inline boost::arg<2> _2() { return boost::arg<2>(); }