comparison DEPENDENCIES/generic/include/boost/move/detail/workaround.hpp @ 102:f46d142149f5

Whoops, finish that update
author Chris Cannam
date Mon, 07 Sep 2015 11:13:41 +0100
parents
children
comparison
equal deleted inserted replaced
101:c530137014c0 102:f46d142149f5
1 //////////////////////////////////////////////////////////////////////////////
2 //
3 // (C) Copyright Ion Gaztanaga 2014-2014. 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_MOVE_DETAIL_WORKAROUND_HPP
12 #define BOOST_MOVE_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 #if !defined(BOOST_NO_CXX11_RVALUE_REFERENCES) && !defined(BOOST_NO_CXX11_VARIADIC_TEMPLATES)
23 #define BOOST_MOVE_PERFECT_FORWARDING
24 #endif
25
26 //Macros for documentation purposes. For code, expands to the argument
27 #define BOOST_MOVE_IMPDEF(TYPE) TYPE
28 #define BOOST_MOVE_SEEDOC(TYPE) TYPE
29 #define BOOST_MOVE_DOC0PTR(TYPE) TYPE
30 #define BOOST_MOVE_DOC1ST(TYPE1, TYPE2) TYPE2
31 #define BOOST_MOVE_I ,
32 #define BOOST_MOVE_DOCIGN(T1) T1
33
34 #if defined(__GNUC__) && (__GNUC__ == 4) && (__GNUC_MINOR__ < 5) && !defined(__clang__)
35 //Pre-standard rvalue binding rules
36 #define BOOST_MOVE_OLD_RVALUE_REF_BINDING_RULES
37 #elif defined(_MSC_VER) && (_MSC_VER == 1600)
38 //Standard rvalue binding rules but with some bugs
39 #define BOOST_MOVE_MSVC_10_MEMBER_RVALUE_REF_BUG
40 #define BOOST_MOVE_MSVC_AUTO_MOVE_RETURN_BUG
41 #elif defined(_MSC_VER) && (_MSC_VER == 1700)
42 #define BOOST_MOVE_MSVC_AUTO_MOVE_RETURN_BUG
43 #endif
44
45 #endif //#ifndef BOOST_MOVE_DETAIL_WORKAROUND_HPP