New URL for NEMO forge!   http://forge.nemo-ocean.eu

Since March 2022 along with NEMO 4.2 release, the code development moved to a self-hosted GitLab.
This present forge is now archived and remained online for history.
placeholders.hpp in vendors/XIOS/current/extern/boost/include/boost/bind – NEMO

source: vendors/XIOS/current/extern/boost/include/boost/bind/placeholders.hpp @ 3428

Last change on this file since 3428 was 3428, checked in by rblod, 12 years ago

importing initial XIOS vendor drop

File size: 1.8 KB
Line 
1#ifndef BOOST_BIND_PLACEHOLDERS_HPP_INCLUDED
2#define BOOST_BIND_PLACEHOLDERS_HPP_INCLUDED
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 <boost/bind/arg.hpp>
23#include <boost/config.hpp>
24
25namespace
26{
27
28#if defined(__BORLANDC__) || defined(__GNUC__) && (__GNUC__ < 4)
29
30static inline boost::arg<1> _1() { return boost::arg<1>(); }
31static inline boost::arg<2> _2() { return boost::arg<2>(); }
32static inline boost::arg<3> _3() { return boost::arg<3>(); }
33static inline boost::arg<4> _4() { return boost::arg<4>(); }
34static inline boost::arg<5> _5() { return boost::arg<5>(); }
35static inline boost::arg<6> _6() { return boost::arg<6>(); }
36static inline boost::arg<7> _7() { return boost::arg<7>(); }
37static inline boost::arg<8> _8() { return boost::arg<8>(); }
38static inline boost::arg<9> _9() { return boost::arg<9>(); }
39
40#elif defined(BOOST_MSVC) || (defined(__DECCXX_VER) && __DECCXX_VER <= 60590031) || defined(__MWERKS__) || \
41    defined(__GNUC__) && (__GNUC__ == 4 && __GNUC_MINOR__ < 2) 
42
43static boost::arg<1> _1;
44static boost::arg<2> _2;
45static boost::arg<3> _3;
46static boost::arg<4> _4;
47static boost::arg<5> _5;
48static boost::arg<6> _6;
49static boost::arg<7> _7;
50static boost::arg<8> _8;
51static boost::arg<9> _9;
52
53#else
54
55boost::arg<1> _1;
56boost::arg<2> _2;
57boost::arg<3> _3;
58boost::arg<4> _4;
59boost::arg<5> _5;
60boost::arg<6> _6;
61boost::arg<7> _7;
62boost::arg<8> _8;
63boost::arg<9> _9;
64
65#endif
66
67} // unnamed namespace
68
69#endif // #ifndef BOOST_BIND_PLACEHOLDERS_HPP_INCLUDED
Note: See TracBrowser for help on using the repository browser.