1 #ifndef BOOST_BIND_PLACEHOLDERS_HPP_INCLUDED
\r
2 #define BOOST_BIND_PLACEHOLDERS_HPP_INCLUDED
\r
4 // MS compatible compilers support #pragma once
\r
6 #if defined(_MSC_VER) && (_MSC_VER >= 1020)
\r
11 // bind/placeholders.hpp - _N definitions
\r
13 // Copyright (c) 2002 Peter Dimov and Multi Media Ltd.
\r
15 // Distributed under the Boost Software License, Version 1.0. (See
\r
16 // accompanying file LICENSE_1_0.txt or copy at
\r
17 // http://www.boost.org/LICENSE_1_0.txt)
\r
19 // See http://www.boost.org/libs/bind/bind.html for documentation.
\r
22 #include <boost/bind/arg.hpp>
\r
23 #include <boost/config.hpp>
\r
28 #if defined(__BORLANDC__) || defined(__GNUC__) && (__GNUC__ * 100 + __GNUC_MINOR__ < 400)
\r
30 static inline boost::arg<1> _1() { return boost::arg<1>(); }
\r
31 static inline boost::arg<2> _2() { return boost::arg<2>(); }
\r
32 static inline boost::arg<3> _3() { return boost::arg<3>(); }
\r
33 static inline boost::arg<4> _4() { return boost::arg<4>(); }
\r
34 static inline boost::arg<5> _5() { return boost::arg<5>(); }
\r
35 static inline boost::arg<6> _6() { return boost::arg<6>(); }
\r
36 static inline boost::arg<7> _7() { return boost::arg<7>(); }
\r
37 static inline boost::arg<8> _8() { return boost::arg<8>(); }
\r
38 static inline boost::arg<9> _9() { return boost::arg<9>(); }
\r
40 #elif defined(BOOST_MSVC) || (defined(__DECCXX_VER) && __DECCXX_VER <= 60590031) || defined(__MWERKS__) || \
\r
41 defined(__GNUC__) && (__GNUC__ * 100 + __GNUC_MINOR__ == 400)
\r
43 static boost::arg<1> _1;
\r
44 static boost::arg<2> _2;
\r
45 static boost::arg<3> _3;
\r
46 static boost::arg<4> _4;
\r
47 static boost::arg<5> _5;
\r
48 static boost::arg<6> _6;
\r
49 static boost::arg<7> _7;
\r
50 static boost::arg<8> _8;
\r
51 static boost::arg<9> _9;
\r
67 } // unnamed namespace
\r
69 #endif // #ifndef BOOST_BIND_PLACEHOLDERS_HPP_INCLUDED
\r