Chris@16
|
1 //////////////////////////////////////////////////////////////////////////////
|
Chris@16
|
2 //
|
Chris@101
|
3 // (C) Copyright Ion Gaztanaga 2005-2013. Distributed under the Boost
|
Chris@16
|
4 // Software License, Version 1.0. (See accompanying file
|
Chris@16
|
5 // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
|
Chris@16
|
6 //
|
Chris@16
|
7 // See http://www.boost.org/libs/container for documentation.
|
Chris@16
|
8 //
|
Chris@16
|
9 //////////////////////////////////////////////////////////////////////////////
|
Chris@16
|
10
|
Chris@16
|
11 #ifndef BOOST_CONTAINER_DETAIL_WORKAROUND_HPP
|
Chris@16
|
12 #define BOOST_CONTAINER_DETAIL_WORKAROUND_HPP
|
Chris@16
|
13
|
Chris@101
|
14 #ifndef BOOST_CONFIG_HPP
|
Chris@101
|
15 # include <boost/config.hpp>
|
Chris@101
|
16 #endif
|
Chris@101
|
17
|
Chris@101
|
18 #if defined(BOOST_HAS_PRAGMA_ONCE)
|
Chris@101
|
19 # pragma once
|
Chris@101
|
20 #endif
|
Chris@101
|
21
|
Chris@16
|
22 #include <boost/container/detail/config_begin.hpp>
|
Chris@16
|
23
|
Chris@16
|
24 #if !defined(BOOST_NO_CXX11_RVALUE_REFERENCES) && !defined(BOOST_NO_CXX11_VARIADIC_TEMPLATES)\
|
Chris@16
|
25 && !defined(BOOST_INTERPROCESS_DISABLE_VARIADIC_TMPL)
|
Chris@16
|
26 #define BOOST_CONTAINER_PERFECT_FORWARDING
|
Chris@16
|
27 #endif
|
Chris@16
|
28
|
Chris@16
|
29 #if !defined(BOOST_NO_CXX11_VARIADIC_TEMPLATES) && defined(__GXX_EXPERIMENTAL_CXX0X__)\
|
Chris@16
|
30 && (__GNUC__*10000 + __GNUC_MINOR__*100 + __GNUC_PATCHLEVEL__ < 40700)
|
Chris@16
|
31 #define BOOST_CONTAINER_UNIMPLEMENTED_PACK_EXPANSION_TO_FIXED_LIST
|
Chris@16
|
32 #endif
|
Chris@16
|
33
|
Chris@16
|
34 #if !defined(BOOST_FALLTHOUGH)
|
Chris@16
|
35 #define BOOST_CONTAINER_FALLTHOUGH
|
Chris@16
|
36 #else
|
Chris@16
|
37 #define BOOST_CONTAINER_FALLTHOUGH BOOST_FALLTHOUGH;
|
Chris@16
|
38 #endif
|
Chris@16
|
39
|
Chris@16
|
40 //Macros for documentation purposes. For code, expands to the argument
|
Chris@16
|
41 #define BOOST_CONTAINER_IMPDEF(TYPE) TYPE
|
Chris@16
|
42 #define BOOST_CONTAINER_SEEDOC(TYPE) TYPE
|
Chris@16
|
43
|
Chris@101
|
44 //Macros for memset optimization. In most platforms
|
Chris@101
|
45 //memsetting pointers and floatings is safe and faster.
|
Chris@101
|
46 //
|
Chris@101
|
47 //If your platform does not offer these guarantees
|
Chris@101
|
48 //define these to value zero.
|
Chris@101
|
49 #ifndef BOOST_CONTAINER_MEMZEROED_FLOATING_POINT_IS_NOT_ZERO
|
Chris@101
|
50 #define BOOST_CONTAINER_MEMZEROED_FLOATING_POINT_IS_ZERO 1
|
Chris@101
|
51 #endif
|
Chris@101
|
52
|
Chris@101
|
53 #ifndef BOOST_CONTAINER_MEMZEROED_POINTER_IS_NOT_NULL
|
Chris@101
|
54 #define BOOST_CONTAINER_MEMZEROED_POINTER_IS_NULL
|
Chris@101
|
55 #endif
|
Chris@101
|
56
|
Chris@101
|
57 #define BOOST_CONTAINER_DOC1ST(TYPE1, TYPE2) TYPE2
|
Chris@101
|
58 #define BOOST_CONTAINER_I ,
|
Chris@101
|
59 #define BOOST_CONTAINER_DOCIGN(T) T
|
Chris@101
|
60 #define BOOST_CONTAINER_DOCONLY(T)
|
Chris@101
|
61
|
Chris@16
|
62 #include <boost/container/detail/config_end.hpp>
|
Chris@16
|
63
|
Chris@16
|
64 #endif //#ifndef BOOST_CONTAINER_DETAIL_WORKAROUND_HPP
|