mirror of
https://github.com/boostorg/config.git
synced 2025-08-03 22:34:27 +02:00
Add new config macro: BOOST_NO_UNIFIED_INITIALIZATION_SYNTAX.
Fixes #4867. [SVN r71840]
This commit is contained in:
@@ -2805,6 +2805,19 @@
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<p>
|
||||
<code class="computeroutput"><span class="identifier">BOOST_NO_UNIFIED_INITIALIZATION_SYNTAX</span></code>
|
||||
</p>
|
||||
</td>
|
||||
<td>
|
||||
<p>
|
||||
The compiler does not support the <a href="http://en.wikipedia.org/wiki/C%2B%2B0x#Uniform_initialization" target="_top">C++11
|
||||
Unified Initialization Syntax</a>.
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<p>
|
||||
<code class="computeroutput"><span class="identifier">BOOST_NO_VARIADIC_TEMPLATES</span></code>
|
||||
|
@@ -28,7 +28,7 @@
|
||||
</h3></div></div></div>
|
||||
<div><p class="copyright">Copyright © 2001 -2007 Beman Dawes, Vesa Karvonen, John Maddock</p></div>
|
||||
<div><div class="legalnotice">
|
||||
<a name="id1002992"></a><p>
|
||||
<a name="id996438"></a><p>
|
||||
Distributed under the Boost Software License, Version 1.0. (See accompanying
|
||||
file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
|
||||
</p>
|
||||
@@ -946,7 +946,7 @@
|
||||
</div>
|
||||
</div>
|
||||
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
|
||||
<td align="left"><p><small>Last revised: May 05, 2011 at 11:00:04 GMT</small></p></td>
|
||||
<td align="left"><p><small>Last revised: May 09, 2011 at 11:33:33 GMT</small></p></td>
|
||||
<td align="right"><div class="copyright-footer"></div></td>
|
||||
</tr></table>
|
||||
<hr>
|
||||
|
@@ -621,6 +621,9 @@ scoped enumerations (`enum class`).
|
||||
[[`BOOST_NO_UNICODE_LITERALS`][The compiler does not support
|
||||
Unicode (`u8`, `u`, `U`) literals.
|
||||
]]
|
||||
[[`BOOST_NO_UNIFIED_INITIALIZATION_SYNTAX`][The compiler does not support
|
||||
the [@http://en.wikipedia.org/wiki/C%2B%2B0x#Uniform_initialization C++11 Unified Initialization Syntax].
|
||||
]]
|
||||
[[`BOOST_NO_VARIADIC_TEMPLATES`][The compiler does not support
|
||||
variadic templates.
|
||||
]]
|
||||
|
@@ -186,6 +186,7 @@
|
||||
#define BOOST_NO_UNICODE_LITERALS // UTF-8 still not supported
|
||||
#define BOOST_NO_VARIADIC_TEMPLATES
|
||||
#define BOOST_NO_NOEXCEPT
|
||||
#define BOOST_NO_UNIFIED_INITIALIZATION_SYNTAX
|
||||
|
||||
#if __BORLANDC__ >= 0x590
|
||||
# define BOOST_HAS_TR1_HASH
|
||||
|
@@ -52,6 +52,7 @@
|
||||
#define BOOST_NO_NOEXCEPT
|
||||
#define BOOST_NO_NULLPTR
|
||||
#define BOOST_NO_RAW_LITERALS
|
||||
#define BOOST_NO_UNIFIED_INITIALIZATION_SYNTAX
|
||||
|
||||
#if !__has_feature(cxx_rvalue_references)
|
||||
# define BOOST_NO_RVALUE_REFERENCES
|
||||
|
@@ -108,6 +108,7 @@
|
||||
#define BOOST_NO_TEMPLATE_ALIASES
|
||||
#define BOOST_NO_UNICODE_LITERALS
|
||||
#define BOOST_NO_VARIADIC_TEMPLATES
|
||||
#define BOOST_NO_UNIFIED_INITIALIZATION_SYNTAX
|
||||
|
||||
//
|
||||
// TR1 macros:
|
||||
|
@@ -91,6 +91,7 @@
|
||||
#define BOOST_NO_TEMPLATE_ALIASES
|
||||
#define BOOST_NO_UNICODE_LITERALS
|
||||
#define BOOST_NO_VARIADIC_TEMPLATES
|
||||
#define BOOST_NO_UNIFIED_INITIALIZATION_SYNTAX
|
||||
|
||||
#ifdef c_plusplus
|
||||
// EDG has "long long" in non-strict mode
|
||||
|
@@ -82,6 +82,8 @@
|
||||
#define BOOST_NO_TEMPLATE_ALIASES
|
||||
#define BOOST_NO_UNICODE_LITERALS
|
||||
#define BOOST_NO_VARIADIC_TEMPLATES
|
||||
#define BOOST_NO_UNIFIED_INITIALIZATION_SYNTAX
|
||||
|
||||
#if (__DMC__ < 0x812)
|
||||
#define BOOST_NO_VARIADIC_MACROS
|
||||
#endif
|
||||
|
@@ -214,6 +214,7 @@
|
||||
#define BOOST_NO_CONSTEXPR
|
||||
#define BOOST_NO_NOEXCEPT
|
||||
#define BOOST_NO_NULLPTR
|
||||
#define BOOST_NO_UNIFIED_INITIALIZATION_SYNTAX
|
||||
#endif
|
||||
|
||||
#ifndef BOOST_COMPILER
|
||||
|
@@ -51,6 +51,7 @@
|
||||
# define BOOST_NO_RAW_LITERALS
|
||||
# define BOOST_NO_UNICODE_LITERALS
|
||||
# define BOOST_NO_NOEXCEPT
|
||||
#define BOOST_NO_UNIFIED_INITIALIZATION_SYNTAX
|
||||
|
||||
#define BOOST_COMPILER "GCC-XML C++ version " __GCCXML__
|
||||
|
||||
|
@@ -115,6 +115,7 @@
|
||||
#define BOOST_NO_UNICODE_LITERALS
|
||||
#define BOOST_NO_VARIADIC_TEMPLATES
|
||||
#define BOOST_NO_VARIADIC_MACROS
|
||||
#define BOOST_NO_UNIFIED_INITIALIZATION_SYNTAX
|
||||
|
||||
#define BOOST_COMPILER "Metrowerks CodeWarrior C++ version " BOOST_STRINGIZE(BOOST_COMPILER_VERSION)
|
||||
|
||||
|
@@ -64,6 +64,7 @@
|
||||
#define BOOST_NO_UNICODE_LITERALS
|
||||
#define BOOST_NO_VARIADIC_TEMPLATES
|
||||
#define BOOST_NO_VARIADIC_MACROS
|
||||
#define BOOST_NO_UNIFIED_INITIALIZATION_SYNTAX
|
||||
|
||||
//
|
||||
// versions check:
|
||||
|
@@ -58,6 +58,7 @@
|
||||
# define BOOST_NO_CHAR16_T
|
||||
# define BOOST_NO_AUTO_MULTIDECLARATIONS
|
||||
# define BOOST_NO_AUTO_DECLARATIONS
|
||||
# define BOOST_NO_UNIFIED_INITIALIZATION_SYNTAX
|
||||
# define BOOST_NO_0X_HDR_UNORDERED_SET
|
||||
# define BOOST_NO_0X_HDR_UNORDERED_MAP
|
||||
# define BOOST_NO_0X_HDR_TYPEINDEX
|
||||
|
@@ -71,6 +71,7 @@
|
||||
#define BOOST_NO_UNICODE_LITERALS
|
||||
#define BOOST_NO_VARIADIC_TEMPLATES
|
||||
#define BOOST_NO_VARIADIC_MACROS
|
||||
#define BOOST_NO_UNIFIED_INITIALIZATION_SYNTAX
|
||||
|
||||
//
|
||||
// version check:
|
||||
|
@@ -123,6 +123,7 @@
|
||||
#define BOOST_NO_UNICODE_LITERALS
|
||||
#define BOOST_NO_VARIADIC_TEMPLATES
|
||||
#define BOOST_NO_VARIADIC_MACROS
|
||||
#define BOOST_NO_UNIFIED_INITIALIZATION_SYNTAX
|
||||
|
||||
//
|
||||
// Version
|
||||
|
@@ -102,6 +102,7 @@
|
||||
#define BOOST_NO_RVALUE_REFERENCES
|
||||
#define BOOST_NO_SCOPED_ENUMS
|
||||
#define BOOST_NO_SFINAE_EXPR
|
||||
#define BOOST_NO_UNIFIED_INITIALIZATION_SYNTAX
|
||||
#if ! __IBMCPP_STATIC_ASSERT
|
||||
# define BOOST_NO_STATIC_ASSERT
|
||||
#endif
|
||||
|
@@ -207,6 +207,7 @@
|
||||
#define BOOST_NO_VARIADIC_TEMPLATES
|
||||
#define BOOST_NO_SFINAE_EXPR
|
||||
#define BOOST_NO_TWO_PHASE_NAME_LOOKUP
|
||||
#define BOOST_NO_UNIFIED_INITIALIZATION_SYNTAX
|
||||
//
|
||||
// prefix and suffix headers:
|
||||
//
|
||||
|
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# Regression test Jamfile for boost configuration setup.
|
||||
# *** DO NOT EDIT THIS FILE BY HAND ***
|
||||
# This file was automatically generated on Thu May 5 04:40:08 2011
|
||||
# This file was automatically generated on Mon May 09 12:11:18 2011
|
||||
# by libs/config/tools/generate.cpp
|
||||
# Copyright John Maddock.
|
||||
# Use, modification and distribution are subject to the
|
||||
@@ -493,6 +493,9 @@ test-suite "BOOST_NO_TYPENAME_WITH_CTOR" :
|
||||
test-suite "BOOST_NO_UNICODE_LITERALS" :
|
||||
[ run ../no_unicode_literals_pass.cpp ]
|
||||
[ compile-fail ../no_unicode_literals_fail.cpp ] ;
|
||||
test-suite "BOOST_NO_UNIFIED_INITIALIZATION_SYNTAX" :
|
||||
[ run ../no_unified_init_pass.cpp ]
|
||||
[ compile-fail ../no_unified_init_fail.cpp ] ;
|
||||
test-suite "BOOST_FUNCTION_SCOPE_USING_DECLARATION_BREAKS_ADL" :
|
||||
[ run ../no_using_breaks_adl_pass.cpp ]
|
||||
[ compile-fail ../no_using_breaks_adl_fail.cpp ] ;
|
||||
|
@@ -10,7 +10,7 @@
|
||||
// TITLE: C++0x defaulted functions unavailable
|
||||
// DESCRIPTION: The compiler does not support C++0x defaulted functions
|
||||
|
||||
#if defined(__GNUC__) && !defined(__GXX_EXPERIMENTAL_CXX0X__)
|
||||
#if defined(__GNUC__) && !defined(__GXX_EXPERIMENTAL_CXX0X__) && !defined(BOOST_INTEL_STDCXX0X)
|
||||
# error Defaulted functions aren't really supported in non-C++0x mode
|
||||
#endif
|
||||
|
||||
|
@@ -10,7 +10,7 @@
|
||||
// TITLE: C++0x =delete functions unavailable
|
||||
// DESCRIPTION: The compiler does not support C++0x =delete functions
|
||||
|
||||
#if defined(__GNUC__) && !defined(__GXX_EXPERIMENTAL_CXX0X__)
|
||||
#if defined(__GNUC__) && !defined(__GXX_EXPERIMENTAL_CXX0X__) && !defined(BOOST_INTEL_STDCXX0X)
|
||||
# error Deleted functions aren't really supported in non-C++0x mode
|
||||
#endif
|
||||
|
||||
|
@@ -10,7 +10,7 @@
|
||||
// TITLE: C++0x explicit conversion operators unavailable
|
||||
// DESCRIPTION: The compiler does not support C++0x explicit conversion operators
|
||||
|
||||
#if defined(__GNUC__) && !defined(__GXX_EXPERIMENTAL_CXX0X__)
|
||||
#if defined(__GNUC__) && !defined(__GXX_EXPERIMENTAL_CXX0X__) && !defined(BOOST_INTEL_STDCXX0X)
|
||||
# error This feature isn't really available in non-C++0x mode
|
||||
#endif
|
||||
|
||||
|
@@ -10,7 +10,7 @@
|
||||
// TITLE: C++0x lambda feature unavailable
|
||||
// DESCRIPTION: The compiler does not support the C++0x lambda feature
|
||||
|
||||
#if defined(__GNUC__) && !defined(__GXX_EXPERIMENTAL_CXX0X__)
|
||||
#if defined(__GNUC__) && !defined(__GXX_EXPERIMENTAL_CXX0X__) && !defined(BOOST_INTEL_STDCXX0X)
|
||||
# error This feature isn't really available in non-C++0x mode
|
||||
#endif
|
||||
|
||||
|
@@ -1067,6 +1067,7 @@ void print_boost_macros()
|
||||
PRINT_MACRO(BOOST_NO_TYPEID);
|
||||
PRINT_MACRO(BOOST_NO_TYPENAME_WITH_CTOR);
|
||||
PRINT_MACRO(BOOST_NO_UNICODE_LITERALS);
|
||||
PRINT_MACRO(BOOST_NO_UNIFIED_INITIALIZATION_SYNTAX);
|
||||
PRINT_MACRO(BOOST_NO_UNREACHABLE_RETURN_DETECTION);
|
||||
PRINT_MACRO(BOOST_NO_USING_DECLARATION_OVERLOADS_FROM_TYPENAME_BASE);
|
||||
PRINT_MACRO(BOOST_NO_USING_TEMPLATE);
|
||||
@@ -1077,6 +1078,7 @@ void print_boost_macros()
|
||||
|
||||
|
||||
|
||||
|
||||
// END GENERATED BLOCK
|
||||
|
||||
PRINT_MACRO(BOOST_INTEL);
|
||||
|
@@ -1,4 +1,4 @@
|
||||
// This file was automatically generated on Thu May 5 04:40:08 2011
|
||||
// This file was automatically generated on Mon May 09 12:11:18 2011
|
||||
// by libs/config/tools/generate.cpp
|
||||
// Copyright John Maddock 2002-4.
|
||||
// Use, modification and distribution are subject to the
|
||||
@@ -557,6 +557,11 @@ namespace boost_no_typename_with_ctor = empty_boost;
|
||||
#else
|
||||
namespace boost_no_unicode_literals = empty_boost;
|
||||
#endif
|
||||
#ifndef BOOST_NO_UNIFIED_INITIALIZATION_SYNTAX
|
||||
#include "boost_no_unified_init.ipp"
|
||||
#else
|
||||
namespace boost_no_unified_initialization_syntax = empty_boost;
|
||||
#endif
|
||||
#ifndef BOOST_FUNCTION_SCOPE_USING_DECLARATION_BREAKS_ADL
|
||||
#include "boost_no_using_breaks_adl.ipp"
|
||||
#else
|
||||
@@ -1631,6 +1636,11 @@ int main( int, char *[] )
|
||||
std::cerr << "Failed test for BOOST_NO_UNICODE_LITERALS at: " << __FILE__ << ":" << __LINE__ << std::endl;
|
||||
++error_count;
|
||||
}
|
||||
if(0 != boost_no_unified_initialization_syntax::test())
|
||||
{
|
||||
std::cerr << "Failed test for BOOST_NO_UNIFIED_INITIALIZATION_SYNTAX at: " << __FILE__ << ":" << __LINE__ << std::endl;
|
||||
++error_count;
|
||||
}
|
||||
if(0 != boost_function_scope_using_declaration_breaks_adl::test())
|
||||
{
|
||||
std::cerr << "Failed test for BOOST_FUNCTION_SCOPE_USING_DECLARATION_BREAKS_ADL at: " << __FILE__ << ":" << __LINE__ << std::endl;
|
||||
|
Reference in New Issue
Block a user