forked from boostorg/config
Merge branch 'update-cray-config'
This commit is contained in:
@ -25,11 +25,12 @@
|
|||||||
|
|
||||||
|
|
||||||
//
|
//
|
||||||
// Cray peculiarities, probably version 7 specific:
|
|
||||||
//
|
//
|
||||||
|
#define BOOST_NO_CXX11_STATIC_ASSERT
|
||||||
#define BOOST_NO_CXX11_AUTO_DECLARATIONS
|
#define BOOST_NO_CXX11_AUTO_DECLARATIONS
|
||||||
#define BOOST_NO_CXX11_AUTO_MULTIDECLARATIONS
|
#define BOOST_NO_CXX11_AUTO_MULTIDECLARATIONS
|
||||||
#define BOOST_HAS_NRVO
|
#define BOOST_HAS_NRVO
|
||||||
|
#define BOOST_NO_CXX11_VARIADIC_MACROS
|
||||||
#define BOOST_NO_CXX11_VARIADIC_TEMPLATES
|
#define BOOST_NO_CXX11_VARIADIC_TEMPLATES
|
||||||
#define BOOST_NO_CXX11_UNIFIED_INITIALIZATION_SYNTAX
|
#define BOOST_NO_CXX11_UNIFIED_INITIALIZATION_SYNTAX
|
||||||
#define BOOST_NO_CXX11_UNICODE_LITERALS
|
#define BOOST_NO_CXX11_UNICODE_LITERALS
|
||||||
@ -64,4 +65,24 @@
|
|||||||
#define BOOST_SP_USE_PTHREADS
|
#define BOOST_SP_USE_PTHREADS
|
||||||
#define BOOST_AC_USE_PTHREADS
|
#define BOOST_AC_USE_PTHREADS
|
||||||
|
|
||||||
|
/* everything that follows is working around what are thought to be
|
||||||
|
* compiler shortcomings. Revist all of these regularly.
|
||||||
|
*/
|
||||||
|
|
||||||
|
//#define BOOST_USE_ENUM_STATIC_ASSERT
|
||||||
|
//#define BOOST_BUGGY_INTEGRAL_CONSTANT_EXPRESSIONS //(this may be implied by the previous #define
|
||||||
|
|
||||||
|
// These constants should be provided by the
|
||||||
|
// compiler, at least when -hgnu is asserted on the command line.
|
||||||
|
|
||||||
|
#ifndef __ATOMIC_RELAXED
|
||||||
|
#define __ATOMIC_RELAXED 0
|
||||||
|
#define __ATOMIC_CONSUME 1
|
||||||
|
#define __ATOMIC_ACQUIRE 2
|
||||||
|
#define __ATOMIC_RELEASE 3
|
||||||
|
#define __ATOMIC_ACQ_REL 4
|
||||||
|
#define __ATOMIC_SEQ_CST 5
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -23,6 +23,14 @@
|
|||||||
# define BOOST_NO_CXX11_HDR_TUPLE
|
# define BOOST_NO_CXX11_HDR_TUPLE
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
// BOOST_NO_CXX11_ALLOCATOR should imply no support for the C++11
|
||||||
|
// allocator model. The C++11 allocator model requires a conforming
|
||||||
|
// std::allocator_traits which is only possible with C++11 template
|
||||||
|
// aliases since members rebind_alloc and rebind_traits require it.
|
||||||
|
#if defined(_LIBCPP_HAS_NO_TEMPLATE_ALIASES)
|
||||||
|
# define BOOST_NO_CXX11_ALLOCATOR
|
||||||
|
#endif
|
||||||
|
|
||||||
//
|
//
|
||||||
// These appear to be unusable/incomplete so far:
|
// These appear to be unusable/incomplete so far:
|
||||||
//
|
//
|
||||||
|
@ -85,8 +85,7 @@
|
|||||||
// (this macro is used to turn on __declspec(dllimport) modifiers, so that
|
// (this macro is used to turn on __declspec(dllimport) modifiers, so that
|
||||||
// the compiler knows which symbols to look for in a dll rather than in a
|
// the compiler knows which symbols to look for in a dll rather than in a
|
||||||
// static library). Note that there may be some libraries that can only
|
// static library). Note that there may be some libraries that can only
|
||||||
// be statically linked (Boost.Test for example) and others which may only
|
// be linked in one way (statically or dynamically), in these cases this
|
||||||
// be dynamically linked (Boost.Threads for example), in these cases this
|
|
||||||
// macro has no effect.
|
// macro has no effect.
|
||||||
// #define BOOST_ALL_DYN_LINK
|
// #define BOOST_ALL_DYN_LINK
|
||||||
|
|
||||||
@ -97,9 +96,9 @@
|
|||||||
// BOOST_REGEX_DYN_LINK etc (this macro is used to turn on __declspec(dllimport)
|
// BOOST_REGEX_DYN_LINK etc (this macro is used to turn on __declspec(dllimport)
|
||||||
// modifiers, so that the compiler knows which symbols to look for in a dll
|
// modifiers, so that the compiler knows which symbols to look for in a dll
|
||||||
// rather than in a static library).
|
// rather than in a static library).
|
||||||
// Note that there may be some libraries that can only be statically linked
|
// Note that there may be some libraries that can only
|
||||||
// (Boost.Test for example) and others which may only be dynamically linked
|
// be linked in one way (statically or dynamically),
|
||||||
// (Boost.Threads for example), in these cases this macro is unsupported.
|
// in these cases this macro is unsupported.
|
||||||
// #define BOOST_WHATEVER_DYN_LINK
|
// #define BOOST_WHATEVER_DYN_LINK
|
||||||
|
|
||||||
// BOOST_ALL_NO_LIB: Tells the config system not to automatically select
|
// BOOST_ALL_NO_LIB: Tells the config system not to automatically select
|
||||||
|
@ -31,11 +31,13 @@ int test()
|
|||||||
std::allocator<int> ia;
|
std::allocator<int> ia;
|
||||||
std::allocator_traits<std::allocator<int> >::rebind_alloc<void*> ra(ia);
|
std::allocator_traits<std::allocator<int> >::rebind_alloc<void*> ra(ia);
|
||||||
std::allocator<void*>* pva = &ra;
|
std::allocator<void*>* pva = &ra;
|
||||||
|
std::allocator_traits<std::allocator<int> >::rebind_traits<void*>::pointer pt;
|
||||||
|
|
||||||
(void)aat;
|
(void)aat;
|
||||||
(void)ua;
|
(void)ua;
|
||||||
(void)at;
|
(void)at;
|
||||||
(void)pva;
|
(void)pva;
|
||||||
|
(void)pt;
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user