mirror of
https://github.com/boostorg/config.git
synced 2025-08-02 05:44:26 +02:00
Merge pull request #459 from boostorg/feature/boost-no-cxx11-alignof
Add BOOST_NO_CXX11_ALIGNOF. Closes #427.
This commit is contained in:
@@ -656,6 +656,7 @@ that are not yet supported by a particular compiler or library.
|
|||||||
|
|
||||||
[[`BOOST_NO_CXX11_ADDRESSOF`][The standard library header <memory> has no working std::addressof.]]
|
[[`BOOST_NO_CXX11_ADDRESSOF`][The standard library header <memory> has no working std::addressof.]]
|
||||||
[[`BOOST_NO_CXX11_ALIGNAS`][The compiler does not support the `alignas` keyword.]]
|
[[`BOOST_NO_CXX11_ALIGNAS`][The compiler does not support the `alignas` keyword.]]
|
||||||
|
[[`BOOST_NO_CXX11_ALIGNOF`][The compiler does not support the `alignof` keyword.]]
|
||||||
[[`BOOST_NO_CXX11_ALLOCATOR`][The standard library does not provide a C++11 version of `std::allocator` in <memory>.]]
|
[[`BOOST_NO_CXX11_ALLOCATOR`][The standard library does not provide a C++11 version of `std::allocator` in <memory>.]]
|
||||||
[[`BOOST_NO_CXX11_ATOMIC_SMART_PTR`][The standard library <memory> does not support atomic smart pointer operations.]]
|
[[`BOOST_NO_CXX11_ATOMIC_SMART_PTR`][The standard library <memory> does not support atomic smart pointer operations.]]
|
||||||
[[`BOOST_NO_CXX11_AUTO_DECLARATIONS`][The compiler does not support
|
[[`BOOST_NO_CXX11_AUTO_DECLARATIONS`][The compiler does not support
|
||||||
|
@@ -194,6 +194,7 @@
|
|||||||
#define BOOST_NO_CXX11_UNIFIED_INITIALIZATION_SYNTAX
|
#define BOOST_NO_CXX11_UNIFIED_INITIALIZATION_SYNTAX
|
||||||
#define BOOST_NO_CXX11_USER_DEFINED_LITERALS
|
#define BOOST_NO_CXX11_USER_DEFINED_LITERALS
|
||||||
#define BOOST_NO_CXX11_ALIGNAS
|
#define BOOST_NO_CXX11_ALIGNAS
|
||||||
|
#define BOOST_NO_CXX11_ALIGNOF
|
||||||
#define BOOST_NO_CXX11_TRAILING_RESULT_TYPES
|
#define BOOST_NO_CXX11_TRAILING_RESULT_TYPES
|
||||||
#define BOOST_NO_CXX11_INLINE_NAMESPACES
|
#define BOOST_NO_CXX11_INLINE_NAMESPACES
|
||||||
#define BOOST_NO_CXX11_REF_QUALIFIERS
|
#define BOOST_NO_CXX11_REF_QUALIFIERS
|
||||||
|
@@ -240,6 +240,10 @@
|
|||||||
# define BOOST_NO_CXX11_ALIGNAS
|
# define BOOST_NO_CXX11_ALIGNAS
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if !__has_feature(cxx_alignof)
|
||||||
|
# define BOOST_NO_CXX11_ALIGNOF
|
||||||
|
#endif
|
||||||
|
|
||||||
#if !__has_feature(cxx_trailing_return)
|
#if !__has_feature(cxx_trailing_return)
|
||||||
# define BOOST_NO_CXX11_TRAILING_RESULT_TYPES
|
# define BOOST_NO_CXX11_TRAILING_RESULT_TYPES
|
||||||
#endif
|
#endif
|
||||||
|
@@ -260,6 +260,7 @@
|
|||||||
#define BOOST_NO_CXX11_UNIFIED_INITIALIZATION_SYNTAX
|
#define BOOST_NO_CXX11_UNIFIED_INITIALIZATION_SYNTAX
|
||||||
#define BOOST_NO_CXX11_USER_DEFINED_LITERALS
|
#define BOOST_NO_CXX11_USER_DEFINED_LITERALS
|
||||||
#define BOOST_NO_CXX11_ALIGNAS
|
#define BOOST_NO_CXX11_ALIGNAS
|
||||||
|
#define BOOST_NO_CXX11_ALIGNOF
|
||||||
#define BOOST_NO_CXX11_TRAILING_RESULT_TYPES
|
#define BOOST_NO_CXX11_TRAILING_RESULT_TYPES
|
||||||
#define BOOST_NO_CXX11_INLINE_NAMESPACES
|
#define BOOST_NO_CXX11_INLINE_NAMESPACES
|
||||||
#define BOOST_NO_CXX11_REF_QUALIFIERS
|
#define BOOST_NO_CXX11_REF_QUALIFIERS
|
||||||
|
@@ -92,6 +92,7 @@
|
|||||||
#define BOOST_NO_CXX11_TEMPLATE_ALIASES
|
#define BOOST_NO_CXX11_TEMPLATE_ALIASES
|
||||||
#define BOOST_NO_CXX11_UNIFIED_INITIALIZATION_SYNTAX
|
#define BOOST_NO_CXX11_UNIFIED_INITIALIZATION_SYNTAX
|
||||||
#define BOOST_NO_CXX11_ALIGNAS
|
#define BOOST_NO_CXX11_ALIGNAS
|
||||||
|
#define BOOST_NO_CXX11_ALIGNOF
|
||||||
#define BOOST_NO_CXX11_TRAILING_RESULT_TYPES
|
#define BOOST_NO_CXX11_TRAILING_RESULT_TYPES
|
||||||
#define BOOST_NO_CXX11_INLINE_NAMESPACES
|
#define BOOST_NO_CXX11_INLINE_NAMESPACES
|
||||||
#define BOOST_NO_CXX11_REF_QUALIFIERS
|
#define BOOST_NO_CXX11_REF_QUALIFIERS
|
||||||
|
@@ -375,6 +375,7 @@
|
|||||||
|
|
||||||
#if __cplusplus >= 201103L
|
#if __cplusplus >= 201103L
|
||||||
#undef BOOST_NO_CXX11_ALIGNAS
|
#undef BOOST_NO_CXX11_ALIGNAS
|
||||||
|
#undef BOOST_NO_CXX11_ALIGNOF
|
||||||
#undef BOOST_NO_CXX11_DECLTYPE_N3276
|
#undef BOOST_NO_CXX11_DECLTYPE_N3276
|
||||||
#define BOOST_NO_CXX11_HDR_ATOMIC
|
#define BOOST_NO_CXX11_HDR_ATOMIC
|
||||||
#undef BOOST_NO_CXX11_HDR_FUNCTIONAL
|
#undef BOOST_NO_CXX11_HDR_FUNCTIONAL
|
||||||
|
@@ -79,6 +79,7 @@
|
|||||||
#define BOOST_NO_CXX11_UNIFIED_INITIALIZATION_SYNTAX
|
#define BOOST_NO_CXX11_UNIFIED_INITIALIZATION_SYNTAX
|
||||||
#define BOOST_NO_CXX11_USER_DEFINED_LITERALS
|
#define BOOST_NO_CXX11_USER_DEFINED_LITERALS
|
||||||
#define BOOST_NO_CXX11_ALIGNAS
|
#define BOOST_NO_CXX11_ALIGNAS
|
||||||
|
#define BOOST_NO_CXX11_ALIGNOF
|
||||||
#define BOOST_NO_CXX11_TRAILING_RESULT_TYPES
|
#define BOOST_NO_CXX11_TRAILING_RESULT_TYPES
|
||||||
#define BOOST_NO_CXX11_INLINE_NAMESPACES
|
#define BOOST_NO_CXX11_INLINE_NAMESPACES
|
||||||
#define BOOST_NO_CXX11_REF_QUALIFIERS
|
#define BOOST_NO_CXX11_REF_QUALIFIERS
|
||||||
|
@@ -219,6 +219,7 @@
|
|||||||
# define BOOST_NO_CXX11_LOCAL_CLASS_TEMPLATE_PARAMETERS
|
# define BOOST_NO_CXX11_LOCAL_CLASS_TEMPLATE_PARAMETERS
|
||||||
# define BOOST_NO_CXX11_RAW_LITERALS
|
# define BOOST_NO_CXX11_RAW_LITERALS
|
||||||
# define BOOST_NO_CXX11_UNICODE_LITERALS
|
# define BOOST_NO_CXX11_UNICODE_LITERALS
|
||||||
|
# define BOOST_NO_CXX11_ALIGNOF
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// C++0x features in 4.5.1 and later
|
// C++0x features in 4.5.1 and later
|
||||||
|
@@ -57,6 +57,7 @@
|
|||||||
# define BOOST_NO_CXX11_UNIFIED_INITIALIZATION_SYNTAX
|
# define BOOST_NO_CXX11_UNIFIED_INITIALIZATION_SYNTAX
|
||||||
# define BOOST_NO_CXX11_USER_DEFINED_LITERALS
|
# define BOOST_NO_CXX11_USER_DEFINED_LITERALS
|
||||||
# define BOOST_NO_CXX11_ALIGNAS
|
# define BOOST_NO_CXX11_ALIGNAS
|
||||||
|
# define BOOST_NO_CXX11_ALIGNOF
|
||||||
# define BOOST_NO_CXX11_TRAILING_RESULT_TYPES
|
# define BOOST_NO_CXX11_TRAILING_RESULT_TYPES
|
||||||
# define BOOST_NO_CXX11_INLINE_NAMESPACES
|
# define BOOST_NO_CXX11_INLINE_NAMESPACES
|
||||||
# define BOOST_NO_CXX11_REF_QUALIFIERS
|
# define BOOST_NO_CXX11_REF_QUALIFIERS
|
||||||
|
@@ -121,6 +121,7 @@
|
|||||||
#define BOOST_NO_CXX11_VARIADIC_TEMPLATES
|
#define BOOST_NO_CXX11_VARIADIC_TEMPLATES
|
||||||
#define BOOST_NO_CXX11_USER_DEFINED_LITERALS
|
#define BOOST_NO_CXX11_USER_DEFINED_LITERALS
|
||||||
#define BOOST_NO_CXX11_ALIGNAS
|
#define BOOST_NO_CXX11_ALIGNAS
|
||||||
|
#define BOOST_NO_CXX11_ALIGNOF
|
||||||
#define BOOST_NO_CXX11_TRAILING_RESULT_TYPES
|
#define BOOST_NO_CXX11_TRAILING_RESULT_TYPES
|
||||||
#define BOOST_NO_CXX11_INLINE_NAMESPACES
|
#define BOOST_NO_CXX11_INLINE_NAMESPACES
|
||||||
#define BOOST_NO_CXX11_REF_QUALIFIERS
|
#define BOOST_NO_CXX11_REF_QUALIFIERS
|
||||||
|
@@ -483,6 +483,7 @@ template<> struct assert_intrinsic_wchar_t<unsigned short> {};
|
|||||||
// BOOST_NO_CXX11_ALIGNAS
|
// BOOST_NO_CXX11_ALIGNAS
|
||||||
#if (BOOST_INTEL_CXX_VERSION >= 1500) && (!defined(BOOST_INTEL_GCC_VERSION) || (BOOST_INTEL_GCC_VERSION >= 40800)) && (!defined(_MSC_VER) || (_MSC_FULL_VER >= 190021730))
|
#if (BOOST_INTEL_CXX_VERSION >= 1500) && (!defined(BOOST_INTEL_GCC_VERSION) || (BOOST_INTEL_GCC_VERSION >= 40800)) && (!defined(_MSC_VER) || (_MSC_FULL_VER >= 190021730))
|
||||||
# undef BOOST_NO_CXX11_ALIGNAS
|
# undef BOOST_NO_CXX11_ALIGNAS
|
||||||
|
# undef BOOST_NO_CXX11_ALIGNOF
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// BOOST_NO_CXX11_TRAILING_RESULT_TYPES
|
// BOOST_NO_CXX11_TRAILING_RESULT_TYPES
|
||||||
|
@@ -122,6 +122,7 @@
|
|||||||
#define BOOST_NO_CXX11_UNIFIED_INITIALIZATION_SYNTAX
|
#define BOOST_NO_CXX11_UNIFIED_INITIALIZATION_SYNTAX
|
||||||
#define BOOST_NO_CXX11_USER_DEFINED_LITERALS
|
#define BOOST_NO_CXX11_USER_DEFINED_LITERALS
|
||||||
#define BOOST_NO_CXX11_ALIGNAS
|
#define BOOST_NO_CXX11_ALIGNAS
|
||||||
|
#define BOOST_NO_CXX11_ALIGNOF
|
||||||
#define BOOST_NO_CXX11_TRAILING_RESULT_TYPES
|
#define BOOST_NO_CXX11_TRAILING_RESULT_TYPES
|
||||||
#define BOOST_NO_CXX11_INLINE_NAMESPACES
|
#define BOOST_NO_CXX11_INLINE_NAMESPACES
|
||||||
#define BOOST_NO_CXX11_REF_QUALIFIERS
|
#define BOOST_NO_CXX11_REF_QUALIFIERS
|
||||||
|
@@ -71,6 +71,7 @@
|
|||||||
#define BOOST_NO_CXX11_UNIFIED_INITIALIZATION_SYNTAX
|
#define BOOST_NO_CXX11_UNIFIED_INITIALIZATION_SYNTAX
|
||||||
#define BOOST_NO_CXX11_USER_DEFINED_LITERALS
|
#define BOOST_NO_CXX11_USER_DEFINED_LITERALS
|
||||||
#define BOOST_NO_CXX11_ALIGNAS
|
#define BOOST_NO_CXX11_ALIGNAS
|
||||||
|
#define BOOST_NO_CXX11_ALIGNOF
|
||||||
#define BOOST_NO_CXX11_TRAILING_RESULT_TYPES
|
#define BOOST_NO_CXX11_TRAILING_RESULT_TYPES
|
||||||
#define BOOST_NO_CXX11_INLINE_NAMESPACES
|
#define BOOST_NO_CXX11_INLINE_NAMESPACES
|
||||||
#define BOOST_NO_CXX11_REF_QUALIFIERS
|
#define BOOST_NO_CXX11_REF_QUALIFIERS
|
||||||
|
@@ -84,6 +84,7 @@
|
|||||||
# define BOOST_NO_CXX11_HDR_CHRONO
|
# define BOOST_NO_CXX11_HDR_CHRONO
|
||||||
# define BOOST_NO_CXX11_USER_DEFINED_LITERALS
|
# define BOOST_NO_CXX11_USER_DEFINED_LITERALS
|
||||||
# define BOOST_NO_CXX11_ALIGNAS
|
# define BOOST_NO_CXX11_ALIGNAS
|
||||||
|
# define BOOST_NO_CXX11_ALIGNOF
|
||||||
# define BOOST_NO_CXX11_TRAILING_RESULT_TYPES
|
# define BOOST_NO_CXX11_TRAILING_RESULT_TYPES
|
||||||
# define BOOST_NO_CXX11_INLINE_NAMESPACES
|
# define BOOST_NO_CXX11_INLINE_NAMESPACES
|
||||||
# define BOOST_NO_CXX11_REF_QUALIFIERS
|
# define BOOST_NO_CXX11_REF_QUALIFIERS
|
||||||
|
@@ -126,6 +126,7 @@
|
|||||||
#define BOOST_NO_CXX11_TEMPLATE_ALIASES
|
#define BOOST_NO_CXX11_TEMPLATE_ALIASES
|
||||||
#define BOOST_NO_CXX11_UNICODE_LITERALS
|
#define BOOST_NO_CXX11_UNICODE_LITERALS
|
||||||
#define BOOST_NO_CXX11_ALIGNAS
|
#define BOOST_NO_CXX11_ALIGNAS
|
||||||
|
#define BOOST_NO_CXX11_ALIGNOF
|
||||||
#define BOOST_NO_CXX11_TRAILING_RESULT_TYPES
|
#define BOOST_NO_CXX11_TRAILING_RESULT_TYPES
|
||||||
#define BOOST_NO_CXX11_INLINE_NAMESPACES
|
#define BOOST_NO_CXX11_INLINE_NAMESPACES
|
||||||
#define BOOST_NO_CXX11_FINAL
|
#define BOOST_NO_CXX11_FINAL
|
||||||
|
@@ -133,6 +133,7 @@
|
|||||||
# define BOOST_NO_CXX11_VARIADIC_MACROS
|
# define BOOST_NO_CXX11_VARIADIC_MACROS
|
||||||
#endif
|
#endif
|
||||||
#define BOOST_NO_CXX11_ALIGNAS
|
#define BOOST_NO_CXX11_ALIGNAS
|
||||||
|
#define BOOST_NO_CXX11_ALIGNOF
|
||||||
#define BOOST_NO_CXX11_TRAILING_RESULT_TYPES
|
#define BOOST_NO_CXX11_TRAILING_RESULT_TYPES
|
||||||
#define BOOST_NO_CXX11_INLINE_NAMESPACES
|
#define BOOST_NO_CXX11_INLINE_NAMESPACES
|
||||||
#define BOOST_NO_CXX11_REF_QUALIFIERS
|
#define BOOST_NO_CXX11_REF_QUALIFIERS
|
||||||
|
@@ -183,6 +183,7 @@
|
|||||||
# define BOOST_NO_CXX11_REF_QUALIFIERS
|
# define BOOST_NO_CXX11_REF_QUALIFIERS
|
||||||
# define BOOST_NO_CXX11_USER_DEFINED_LITERALS
|
# define BOOST_NO_CXX11_USER_DEFINED_LITERALS
|
||||||
# define BOOST_NO_CXX11_ALIGNAS
|
# define BOOST_NO_CXX11_ALIGNAS
|
||||||
|
# define BOOST_NO_CXX11_ALIGNOF
|
||||||
# define BOOST_NO_CXX11_INLINE_NAMESPACES
|
# define BOOST_NO_CXX11_INLINE_NAMESPACES
|
||||||
# define BOOST_NO_CXX11_CHAR16_T
|
# define BOOST_NO_CXX11_CHAR16_T
|
||||||
# define BOOST_NO_CXX11_CHAR32_T
|
# define BOOST_NO_CXX11_CHAR32_T
|
||||||
|
@@ -184,6 +184,10 @@
|
|||||||
# define BOOST_NO_CXX11_ALIGNAS
|
# define BOOST_NO_CXX11_ALIGNAS
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if !__has_feature(cxx_alignof)
|
||||||
|
# define BOOST_NO_CXX11_ALIGNOF
|
||||||
|
#endif
|
||||||
|
|
||||||
#if !__has_feature(cxx_trailing_return)
|
#if !__has_feature(cxx_trailing_return)
|
||||||
# define BOOST_NO_CXX11_TRAILING_RESULT_TYPES
|
# define BOOST_NO_CXX11_TRAILING_RESULT_TYPES
|
||||||
#endif
|
#endif
|
||||||
|
@@ -142,6 +142,7 @@
|
|||||||
#define BOOST_NO_CXX11_FINAL
|
#define BOOST_NO_CXX11_FINAL
|
||||||
#define BOOST_NO_CXX11_OVERRIDE
|
#define BOOST_NO_CXX11_OVERRIDE
|
||||||
#define BOOST_NO_CXX11_ALIGNAS
|
#define BOOST_NO_CXX11_ALIGNAS
|
||||||
|
#define BOOST_NO_CXX11_ALIGNOF
|
||||||
#define BOOST_NO_CXX11_UNRESTRICTED_UNION
|
#define BOOST_NO_CXX11_UNRESTRICTED_UNION
|
||||||
#define BOOST_NO_CXX14_VARIABLE_TEMPLATES
|
#define BOOST_NO_CXX14_VARIABLE_TEMPLATES
|
||||||
#define BOOST_NO_CXX14_RETURN_TYPE_DEDUCTION
|
#define BOOST_NO_CXX14_RETURN_TYPE_DEDUCTION
|
||||||
|
@@ -193,6 +193,9 @@ test-suite "BOOST_NO_CXX11_ADDRESSOF" :
|
|||||||
test-suite "BOOST_NO_CXX11_ALIGNAS" :
|
test-suite "BOOST_NO_CXX11_ALIGNAS" :
|
||||||
[ run ../no_cxx11_alignas_pass.cpp ]
|
[ run ../no_cxx11_alignas_pass.cpp ]
|
||||||
[ compile-fail ../no_cxx11_alignas_fail.cpp ] ;
|
[ compile-fail ../no_cxx11_alignas_fail.cpp ] ;
|
||||||
|
test-suite "BOOST_NO_CXX11_ALIGNOF" :
|
||||||
|
[ run ../no_cxx11_alignof_pass.cpp ]
|
||||||
|
[ compile-fail ../no_cxx11_alignof_fail.cpp ] ;
|
||||||
test-suite "BOOST_NO_CXX11_ALLOCATOR" :
|
test-suite "BOOST_NO_CXX11_ALLOCATOR" :
|
||||||
[ run ../no_cxx11_allocator_pass.cpp ]
|
[ run ../no_cxx11_allocator_pass.cpp ]
|
||||||
[ compile-fail ../no_cxx11_allocator_fail.cpp ] ;
|
[ compile-fail ../no_cxx11_allocator_fail.cpp ] ;
|
||||||
|
20
test/boost_no_cxx11_alignof.ipp
Normal file
20
test/boost_no_cxx11_alignof.ipp
Normal file
@@ -0,0 +1,20 @@
|
|||||||
|
// Copyright Peter Dimov 2022
|
||||||
|
|
||||||
|
// Use, modification and distribution are subject to the
|
||||||
|
// Boost Software License, Version 1.0. (See accompanying file
|
||||||
|
// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
|
||||||
|
|
||||||
|
// See http://www.boost.org/libs/config for more information.
|
||||||
|
|
||||||
|
// MACRO: BOOST_NO_CXX11_ALIGNOF
|
||||||
|
// TITLE: C++11 alignof keyword.
|
||||||
|
// DESCRIPTION: The compiler does not support the C++11 alignof keyword.
|
||||||
|
|
||||||
|
namespace boost_no_cxx11_alignof {
|
||||||
|
|
||||||
|
int test()
|
||||||
|
{
|
||||||
|
return alignof(int) == alignof(int(&)[2])? 0: 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@@ -1089,6 +1089,7 @@ void print_boost_macros()
|
|||||||
PRINT_MACRO(BOOST_NO_CXX11);
|
PRINT_MACRO(BOOST_NO_CXX11);
|
||||||
PRINT_MACRO(BOOST_NO_CXX11_ADDRESSOF);
|
PRINT_MACRO(BOOST_NO_CXX11_ADDRESSOF);
|
||||||
PRINT_MACRO(BOOST_NO_CXX11_ALIGNAS);
|
PRINT_MACRO(BOOST_NO_CXX11_ALIGNAS);
|
||||||
|
PRINT_MACRO(BOOST_NO_CXX11_ALIGNOF);
|
||||||
PRINT_MACRO(BOOST_NO_CXX11_ALLOCATOR);
|
PRINT_MACRO(BOOST_NO_CXX11_ALLOCATOR);
|
||||||
PRINT_MACRO(BOOST_NO_CXX11_ATOMIC_SMART_PTR);
|
PRINT_MACRO(BOOST_NO_CXX11_ATOMIC_SMART_PTR);
|
||||||
PRINT_MACRO(BOOST_NO_CXX11_AUTO_DECLARATIONS);
|
PRINT_MACRO(BOOST_NO_CXX11_AUTO_DECLARATIONS);
|
||||||
|
@@ -122,6 +122,11 @@ namespace boost_no_cxx11_addressof = empty_boost;
|
|||||||
#else
|
#else
|
||||||
namespace boost_no_cxx11_alignas = empty_boost;
|
namespace boost_no_cxx11_alignas = empty_boost;
|
||||||
#endif
|
#endif
|
||||||
|
#ifndef BOOST_NO_CXX11_ALIGNOF
|
||||||
|
#include "boost_no_cxx11_alignof.ipp"
|
||||||
|
#else
|
||||||
|
namespace boost_no_cxx11_alignof = empty_boost;
|
||||||
|
#endif
|
||||||
#ifndef BOOST_NO_CXX11_ALLOCATOR
|
#ifndef BOOST_NO_CXX11_ALLOCATOR
|
||||||
#include "boost_no_cxx11_allocator.ipp"
|
#include "boost_no_cxx11_allocator.ipp"
|
||||||
#else
|
#else
|
||||||
@@ -1436,6 +1441,11 @@ int main( int, char *[] )
|
|||||||
std::cerr << "Failed test for BOOST_NO_CXX11_ALIGNAS at: " << __FILE__ << ":" << __LINE__ << std::endl;
|
std::cerr << "Failed test for BOOST_NO_CXX11_ALIGNAS at: " << __FILE__ << ":" << __LINE__ << std::endl;
|
||||||
++error_count;
|
++error_count;
|
||||||
}
|
}
|
||||||
|
if(0 != boost_no_cxx11_alignof::test())
|
||||||
|
{
|
||||||
|
std::cerr << "Failed test for BOOST_NO_CXX11_ALIGNOF at: " << __FILE__ << ":" << __LINE__ << std::endl;
|
||||||
|
++error_count;
|
||||||
|
}
|
||||||
if(0 != boost_no_cxx11_allocator::test())
|
if(0 != boost_no_cxx11_allocator::test())
|
||||||
{
|
{
|
||||||
std::cerr << "Failed test for BOOST_NO_CXX11_ALLOCATOR at: " << __FILE__ << ":" << __LINE__ << std::endl;
|
std::cerr << "Failed test for BOOST_NO_CXX11_ALLOCATOR at: " << __FILE__ << ":" << __LINE__ << std::endl;
|
||||||
|
37
test/no_cxx11_alignof_fail.cpp
Normal file
37
test/no_cxx11_alignof_fail.cpp
Normal file
@@ -0,0 +1,37 @@
|
|||||||
|
// This file was automatically generated on Sun Apr 28 18:36:48 2013
|
||||||
|
// by libs/config/tools/generate.cpp
|
||||||
|
// Copyright John Maddock 2002-4.
|
||||||
|
// Use, modification and distribution are subject to the
|
||||||
|
// Boost Software License, Version 1.0. (See accompanying file
|
||||||
|
// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
|
||||||
|
|
||||||
|
// See http://www.boost.org/libs/config for the most recent version.//
|
||||||
|
// Revision $Id$
|
||||||
|
//
|
||||||
|
|
||||||
|
|
||||||
|
// Test file for macro BOOST_NO_CXX11_ALIGNOF
|
||||||
|
// This file should not compile, if it does then
|
||||||
|
// BOOST_NO_CXX11_ALIGNOF should not be defined.
|
||||||
|
// See file boost_no_cxx11_alignof.ipp for details
|
||||||
|
|
||||||
|
// Must not have BOOST_ASSERT_CONFIG set; it defeats
|
||||||
|
// the objective of this file:
|
||||||
|
#ifdef BOOST_ASSERT_CONFIG
|
||||||
|
# undef BOOST_ASSERT_CONFIG
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#include <boost/config.hpp>
|
||||||
|
#include "test.hpp"
|
||||||
|
|
||||||
|
#ifdef BOOST_NO_CXX11_ALIGNOF
|
||||||
|
#include "boost_no_cxx11_alignof.ipp"
|
||||||
|
#else
|
||||||
|
#error "this file should not compile"
|
||||||
|
#endif
|
||||||
|
|
||||||
|
int main( int, char *[] )
|
||||||
|
{
|
||||||
|
return boost_no_cxx11_alignof::test();
|
||||||
|
}
|
||||||
|
|
37
test/no_cxx11_alignof_pass.cpp
Normal file
37
test/no_cxx11_alignof_pass.cpp
Normal file
@@ -0,0 +1,37 @@
|
|||||||
|
// This file was automatically generated on Sun Apr 28 18:36:48 2013
|
||||||
|
// by libs/config/tools/generate.cpp
|
||||||
|
// Copyright John Maddock 2002-4.
|
||||||
|
// Use, modification and distribution are subject to the
|
||||||
|
// Boost Software License, Version 1.0. (See accompanying file
|
||||||
|
// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
|
||||||
|
|
||||||
|
// See http://www.boost.org/libs/config for the most recent version.//
|
||||||
|
// Revision $Id$
|
||||||
|
//
|
||||||
|
|
||||||
|
|
||||||
|
// Test file for macro BOOST_NO_CXX11_ALIGNOF
|
||||||
|
// This file should compile, if it does not then
|
||||||
|
// BOOST_NO_CXX11_ALIGNOF should be defined.
|
||||||
|
// See file boost_no_cxx11_alignof.ipp for details
|
||||||
|
|
||||||
|
// Must not have BOOST_ASSERT_CONFIG set; it defeats
|
||||||
|
// the objective of this file:
|
||||||
|
#ifdef BOOST_ASSERT_CONFIG
|
||||||
|
# undef BOOST_ASSERT_CONFIG
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#include <boost/config.hpp>
|
||||||
|
#include "test.hpp"
|
||||||
|
|
||||||
|
#ifndef BOOST_NO_CXX11_ALIGNOF
|
||||||
|
#include "boost_no_cxx11_alignof.ipp"
|
||||||
|
#else
|
||||||
|
namespace boost_no_cxx11_alignof = empty_boost;
|
||||||
|
#endif
|
||||||
|
|
||||||
|
int main( int, char *[] )
|
||||||
|
{
|
||||||
|
return boost_no_cxx11_alignof::test();
|
||||||
|
}
|
||||||
|
|
Reference in New Issue
Block a user