Jeff Thompson | 3d613fd | 2013-10-15 15:39:04 -0700 | [diff] [blame^] | 1 | #ifndef NDNBOOST_BIND_PLACEHOLDERS_HPP_INCLUDED |
| 2 | #define NDNBOOST_BIND_PLACEHOLDERS_HPP_INCLUDED |
Jeff Thompson | ef2d5a4 | 2013-08-22 19:09:24 -0700 | [diff] [blame] | 3 | |
| 4 | // MS compatible compilers support #pragma once |
| 5 | |
| 6 | #if defined(_MSC_VER) && (_MSC_VER >= 1020) |
| 7 | # pragma once |
| 8 | #endif |
| 9 | |
| 10 | // |
| 11 | // bind/placeholders.hpp - _N definitions |
| 12 | // |
| 13 | // Copyright (c) 2002 Peter Dimov and Multi Media Ltd. |
| 14 | // |
| 15 | // Distributed under the Boost Software License, Version 1.0. (See |
| 16 | // accompanying file LICENSE_1_0.txt or copy at |
| 17 | // http://www.boost.org/LICENSE_1_0.txt) |
| 18 | // |
| 19 | // See http://www.boost.org/libs/bind/bind.html for documentation. |
| 20 | // |
| 21 | |
| 22 | #include <ndnboost/bind/arg.hpp> |
| 23 | #include <ndnboost/config.hpp> |
| 24 | |
| 25 | namespace |
| 26 | { |
| 27 | |
| 28 | #if defined(__BORLANDC__) || defined(__GNUC__) && (__GNUC__ < 4) |
| 29 | |
| 30 | static inline ndnboost::arg<1> _1() { return ndnboost::arg<1>(); } |
| 31 | static inline ndnboost::arg<2> _2() { return ndnboost::arg<2>(); } |
| 32 | static inline ndnboost::arg<3> _3() { return ndnboost::arg<3>(); } |
| 33 | static inline ndnboost::arg<4> _4() { return ndnboost::arg<4>(); } |
| 34 | static inline ndnboost::arg<5> _5() { return ndnboost::arg<5>(); } |
| 35 | static inline ndnboost::arg<6> _6() { return ndnboost::arg<6>(); } |
| 36 | static inline ndnboost::arg<7> _7() { return ndnboost::arg<7>(); } |
| 37 | static inline ndnboost::arg<8> _8() { return ndnboost::arg<8>(); } |
| 38 | static inline ndnboost::arg<9> _9() { return ndnboost::arg<9>(); } |
| 39 | |
Jeff Thompson | 3d613fd | 2013-10-15 15:39:04 -0700 | [diff] [blame^] | 40 | #elif defined(NDNBOOST_MSVC) || (defined(__DECCXX_VER) && __DECCXX_VER <= 60590031) || defined(__MWERKS__) || \ |
Jeff Thompson | ef2d5a4 | 2013-08-22 19:09:24 -0700 | [diff] [blame] | 41 | defined(__GNUC__) && (__GNUC__ == 4 && __GNUC_MINOR__ < 2) |
| 42 | |
| 43 | static ndnboost::arg<1> _1; |
| 44 | static ndnboost::arg<2> _2; |
| 45 | static ndnboost::arg<3> _3; |
| 46 | static ndnboost::arg<4> _4; |
| 47 | static ndnboost::arg<5> _5; |
| 48 | static ndnboost::arg<6> _6; |
| 49 | static ndnboost::arg<7> _7; |
| 50 | static ndnboost::arg<8> _8; |
| 51 | static ndnboost::arg<9> _9; |
| 52 | |
| 53 | #else |
| 54 | |
| 55 | ndnboost::arg<1> _1; |
| 56 | ndnboost::arg<2> _2; |
| 57 | ndnboost::arg<3> _3; |
| 58 | ndnboost::arg<4> _4; |
| 59 | ndnboost::arg<5> _5; |
| 60 | ndnboost::arg<6> _6; |
| 61 | ndnboost::arg<7> _7; |
| 62 | ndnboost::arg<8> _8; |
| 63 | ndnboost::arg<9> _9; |
| 64 | |
| 65 | #endif |
| 66 | |
| 67 | } // unnamed namespace |
| 68 | |
Jeff Thompson | 3d613fd | 2013-10-15 15:39:04 -0700 | [diff] [blame^] | 69 | #endif // #ifndef NDNBOOST_BIND_PLACEHOLDERS_HPP_INCLUDED |