LuaBind和Boost 1.35兼容性问题的解决


namespace luabind { namespace
#if defined(__BORLANDC__) || (BOOST_VERSION >= 103400 && defined(__GNUC__))
# if (BOOST_VERSION >= 103500 && __GNUC__ >= 4 && __GNUC_MINOR__ >= 2)

static boost::arg<0> return_value;

static boost::arg<0> result;

# define LUABIND_PLACEHOLDER_ARG(N) boost::arg<N>&

# else
static inline boost::arg<0> return_value()
return boost::arg<0>();

static inline boost::arg<0> result()
return boost::arg<0>();
//# define LUABIND_PLACEHOLDER_ARG(N) boost::arg<N>(*)()
# define LUABIND_PLACEHOLDER_ARG(N) boost::arg<N>(*)()
# endif

#elif defined(BOOST_MSVC) || defined(__MWERKS__)
static boost::arg<0> return_value;
static boost::arg<0> result;
# define LUABIND_PLACEHOLDER_ARG(N) boost::arg<N>
boost::arg<0> return_value;
boost::arg<0> result;
# define LUABIND_PLACEHOLDER_ARG(N) boost::arg<N>


#include <luabind/detail/class_rep.hpp>
#include <luabind/detail/object_rep.hpp>


boost 1.35 发布


New LibrariesrnAsio:rn Portable networking, including sockets, timers, hostname resolution and socket iostreams, from Chris Kohlhoff. rnBimap:rn Boost.Bimap is a bidirectional maps library for C++. With Boost.Bimap you can create associative containers in which both types can be used as key, from Matias Capeletto. rnCircular Buffer:rn STL compliant container also known as ring or cyclic buffer, from Jan Gaspar. rnFunction Types:rn Boost.FunctionTypes provides functionality to classify, decompose and synthesize function, function pointer, function reference and pointer to member types. From Tobias Schwinger. rnFusion:rn Library for working with tuples, including various containers, algorithms, etc. From Joel de Guzman, Dan Marsden and Tobias Schwinger. rnGIL:rn Generic Image Library, from Lubomir Bourdev and Hailin Jin. rnInterprocess:rn Shared memory, memory mapped files, process-shared mutexes, condition variables, containers and allocators, from Ion Gaztañaga. rnIntrusive:rn Intrusive containers and algorithms, from Ion Gaztañaga. rnMath/Special Functions:rn A wide selection of mathematical special functions from John Maddock, Paul Bristow, Hubert Holin and Xiaogang Zhang. rnMath/Statistical Distributions:rn A wide selection of univariate statistical distributions and functions that operate on them from John Maddock and Paul Bristow rnMPI:rn Message Passing Interface library, for use in distributed-memory parallel application programming, from Douglas Gregor and Matthias Troyer. rnSystem:rn Operating system support, including the diagnostics support that will be part of the C++0x standard library, from Beman Dawes. rn