From 2dad6b432900dcabfda2cc945eb3e8e74bfd0e1a Mon Sep 17 00:00:00 2001 From: Daniel Wallin Date: Thu, 10 Dec 2009 11:33:11 +0100 Subject: [PATCH] Fix placeholder definitions to match changes in Boost 1.39. --- luabind/detail/policy.hpp | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/luabind/detail/policy.hpp b/luabind/detail/policy.hpp index 1115969..b3c6ef0 100644 --- a/luabind/detail/policy.hpp +++ b/luabind/detail/policy.hpp @@ -989,8 +989,10 @@ namespace detail namespace luabind { namespace { -#if defined(__GNUC__) && \ - (__GNUC__ * 100 + __GNUC_MINOR__ < 400 || BOOST_VERSION <= 103401) +#if defined(__GNUC__) && ( \ + (BOOST_VERSION < 103500) \ + || (BOOST_VERSION < 103900 && (__GNUC__ * 100 + __GNUC_MINOR__ <= 400)) \ + || (__GNUC__ * 100 + __GNUC_MINOR__ < 400)) static inline boost::arg<0> return_value() { return boost::arg<0>(); @@ -1001,7 +1003,9 @@ namespace luabind { namespace return boost::arg<0>(); } # define LUABIND_PLACEHOLDER_ARG(N) boost::arg(*)() -#elif defined(BOOST_MSVC) || defined(__MWERKS__) +#elif defined(BOOST_MSVC) || defined(__MWERKS__) \ + || (BOOST_VERSION >= 103900 && defined(__GNUC__) \ + && (__GNUC__ * 100 + __GNUC_MINOR__ == 400)) static boost::arg<0> return_value; static boost::arg<0> result; # define LUABIND_PLACEHOLDER_ARG(N) boost::arg -- 2.11.4.GIT