|
Boost-Commit : |
From: jmcintyre_at_[hidden]
Date: 2007-08-02 14:55:37
Author: jared
Date: 2007-08-02 14:55:36 EDT (Thu, 02 Aug 2007)
New Revision: 38404
URL: http://svn.boost.org/trac/boost/changeset/38404
Log:
workaround for msvc 8/9 problems with bind
Text files modified:
sandbox/pinhole/boost/pinhole/property_group.h | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
Modified: sandbox/pinhole/boost/pinhole/property_group.h
==============================================================================
--- sandbox/pinhole/boost/pinhole/property_group.h (original)
+++ sandbox/pinhole/boost/pinhole/property_group.h 2007-08-02 14:55:36 EDT (Thu, 02 Aug 2007)
@@ -31,7 +31,11 @@
#endif
#define BOOST_SETTER(c) boost::bind(c, this, _1)
-#define BOOST_GETTER(c) boost::bind(c, this)
+#if defined(BOOST_MSVC) && (_MSC_VER > 1310)
+ #define BOOST_GETTER(c) boost::bind(boost::mem_fn(c), this)
+#else
+ #define BOOST_SETTER(c) boost::bind(c, this, _1)
+#endif
#define BOOST_ACTION(c) boost::bind(c, this)
namespace boost { namespace pinhole
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