]>
Commit | Line | Data |
---|---|---|
7c673cae FG |
1 | ////////////////////////////////////////////////////////////////////////////// |
2 | // | |
3 | // (C) Copyright Ion Gaztanaga 2005-2013. Distributed under the Boost | |
4 | // Software License, Version 1.0. (See accompanying file | |
5 | // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) | |
6 | // | |
7 | // See http://www.boost.org/libs/interprocess for documentation. | |
8 | // | |
9 | ////////////////////////////////////////////////////////////////////////////// | |
10 | ||
11 | #ifndef BOOST_INTRUSIVE_DETAIL_WORKAROUND_HPP | |
12 | #define BOOST_INTRUSIVE_DETAIL_WORKAROUND_HPP | |
13 | ||
14 | #ifndef BOOST_CONFIG_HPP | |
15 | # include <boost/config.hpp> | |
16 | #endif | |
17 | ||
18 | #if defined(BOOST_HAS_PRAGMA_ONCE) | |
19 | # pragma once | |
20 | #endif | |
21 | ||
22 | #ifndef BOOST_CONFIG_HPP | |
23 | #include <boost/config.hpp> | |
24 | #endif | |
25 | ||
26 | #if !defined(BOOST_NO_CXX11_RVALUE_REFERENCES) && !defined(BOOST_NO_CXX11_VARIADIC_TEMPLATES) | |
27 | #define BOOST_INTRUSIVE_PERFECT_FORWARDING | |
28 | #endif | |
29 | ||
30 | //Macros for documentation purposes. For code, expands to the argument | |
31 | #define BOOST_INTRUSIVE_IMPDEF(TYPE) TYPE | |
32 | #define BOOST_INTRUSIVE_SEEDOC(TYPE) TYPE | |
33 | #define BOOST_INTRUSIVE_DOC1ST(TYPE1, TYPE2) TYPE2 | |
34 | #define BOOST_INTRUSIVE_I , | |
35 | #define BOOST_INTRUSIVE_DOCIGN(T1) T1 | |
36 | ||
37 | #define BOOST_INTRUSIVE_DISABLE_FORCEINLINE | |
38 | ||
39 | #if defined(BOOST_INTRUSIVE_DISABLE_FORCEINLINE) | |
40 | #define BOOST_INTRUSIVE_FORCEINLINE inline | |
41 | #elif defined(BOOST_INTRUSIVE_FORCEINLINE_IS_BOOST_FORCELINE) | |
42 | #define BOOST_INTRUSIVE_FORCEINLINE BOOST_FORCEINLINE | |
43 | #elif defined(BOOST_MSVC) && defined(_DEBUG) | |
44 | //"__forceinline" and MSVC seems to have some bugs in debug mode | |
45 | #define BOOST_INTRUSIVE_FORCEINLINE inline | |
b32b8144 FG |
46 | #elif defined(__GNUC__) && ((__GNUC__ < 4) || (__GNUC__ == 4 && (__GNUC_MINOR__ < 5))) |
47 | //Older GCCs have problems with forceinline | |
48 | #define BOOST_INTRUSIVE_FORCEINLINE inline | |
7c673cae FG |
49 | #else |
50 | #define BOOST_INTRUSIVE_FORCEINLINE BOOST_FORCEINLINE | |
51 | #endif | |
52 | ||
53 | #endif //#ifndef BOOST_INTRUSIVE_DETAIL_WORKAROUND_HPP |