forked from boostorg/bind
Use inline function placeholders only on Borland C++ to avoid compatibility problems.
[SVN r13172]
This commit is contained in:
@@ -19,10 +19,13 @@
|
|||||||
//
|
//
|
||||||
|
|
||||||
#include <boost/bind/arg.hpp>
|
#include <boost/bind/arg.hpp>
|
||||||
|
#include <boost/config.hpp>
|
||||||
|
|
||||||
namespace
|
namespace
|
||||||
{
|
{
|
||||||
|
|
||||||
|
#if defined(__BORLANDC__)
|
||||||
|
|
||||||
static inline boost::arg<1> _1() { return boost::arg<1>(); }
|
static inline boost::arg<1> _1() { return boost::arg<1>(); }
|
||||||
static inline boost::arg<2> _2() { return boost::arg<2>(); }
|
static inline boost::arg<2> _2() { return boost::arg<2>(); }
|
||||||
static inline boost::arg<3> _3() { return boost::arg<3>(); }
|
static inline boost::arg<3> _3() { return boost::arg<3>(); }
|
||||||
@@ -33,6 +36,32 @@ static inline boost::arg<7> _7() { return boost::arg<7>(); }
|
|||||||
static inline boost::arg<8> _8() { return boost::arg<8>(); }
|
static inline boost::arg<8> _8() { return boost::arg<8>(); }
|
||||||
static inline boost::arg<9> _9() { return boost::arg<9>(); }
|
static inline boost::arg<9> _9() { return boost::arg<9>(); }
|
||||||
|
|
||||||
|
#elif defined(BOOST_MSVC)
|
||||||
|
|
||||||
|
static boost::arg<1> _1;
|
||||||
|
static boost::arg<2> _2;
|
||||||
|
static boost::arg<3> _3;
|
||||||
|
static boost::arg<4> _4;
|
||||||
|
static boost::arg<5> _5;
|
||||||
|
static boost::arg<6> _6;
|
||||||
|
static boost::arg<7> _7;
|
||||||
|
static boost::arg<8> _8;
|
||||||
|
static boost::arg<9> _9;
|
||||||
|
|
||||||
|
#else
|
||||||
|
|
||||||
|
boost::arg<1> _1;
|
||||||
|
boost::arg<2> _2;
|
||||||
|
boost::arg<3> _3;
|
||||||
|
boost::arg<4> _4;
|
||||||
|
boost::arg<5> _5;
|
||||||
|
boost::arg<6> _6;
|
||||||
|
boost::arg<7> _7;
|
||||||
|
boost::arg<8> _8;
|
||||||
|
boost::arg<9> _9;
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
||||||
} // unnamed namespace
|
} // unnamed namespace
|
||||||
|
|
||||||
#endif // #ifndef BOOST_BIND_PLACEHOLDERS_HPP_INCLUDED
|
#endif // #ifndef BOOST_BIND_PLACEHOLDERS_HPP_INCLUDED
|
||||||
|
Reference in New Issue
Block a user