Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r71840 - in trunk: boost/config/compiler libs/config/doc libs/config/doc/html libs/config/doc/html/boost_config libs/config/test libs/config/test/all
From: john_at_[hidden]
Date: 2011-05-09 07:36:42


Author: johnmaddock
Date: 2011-05-09 07:36:39 EDT (Mon, 09 May 2011)
New Revision: 71840
URL: http://svn.boost.org/trac/boost/changeset/71840

Log:
Add new config macro: BOOST_NO_UNIFIED_INITIALIZATION_SYNTAX.
Fixes #4867.
Text files modified:
   trunk/boost/config/compiler/borland.hpp | 1 +
   trunk/boost/config/compiler/clang.hpp | 1 +
   trunk/boost/config/compiler/codegear.hpp | 1 +
   trunk/boost/config/compiler/common_edg.hpp | 1 +
   trunk/boost/config/compiler/digitalmars.hpp | 2 ++
   trunk/boost/config/compiler/gcc.hpp | 1 +
   trunk/boost/config/compiler/gcc_xml.hpp | 1 +
   trunk/boost/config/compiler/metrowerks.hpp | 1 +
   trunk/boost/config/compiler/mpw.hpp | 1 +
   trunk/boost/config/compiler/pathscale.hpp | 1 +
   trunk/boost/config/compiler/pgi.hpp | 1 +
   trunk/boost/config/compiler/sunpro_cc.hpp | 1 +
   trunk/boost/config/compiler/vacpp.hpp | 1 +
   trunk/boost/config/compiler/visualc.hpp | 1 +
   trunk/libs/config/doc/html/boost_config/boost_macro_reference.html | 13 +++++++++++++
   trunk/libs/config/doc/html/index.html | 4 ++--
   trunk/libs/config/doc/macro_reference.qbk | 5 ++++-
   trunk/libs/config/test/all/Jamfile.v2 | 5 ++++-
   trunk/libs/config/test/boost_no_defaulted_functions.ipp | 2 +-
   trunk/libs/config/test/boost_no_deleted_functions.ipp | 2 +-
   trunk/libs/config/test/boost_no_explicit_cvt_ops.ipp | 2 +-
   trunk/libs/config/test/boost_no_lambdas.ipp | 2 +-
   trunk/libs/config/test/config_info.cpp | 2 ++
   trunk/libs/config/test/config_test.cpp | 12 +++++++++++-
   24 files changed, 55 insertions(+), 9 deletions(-)

Modified: trunk/boost/config/compiler/borland.hpp
==============================================================================
--- trunk/boost/config/compiler/borland.hpp (original)
+++ trunk/boost/config/compiler/borland.hpp 2011-05-09 07:36:39 EDT (Mon, 09 May 2011)
@@ -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

Modified: trunk/boost/config/compiler/clang.hpp
==============================================================================
--- trunk/boost/config/compiler/clang.hpp (original)
+++ trunk/boost/config/compiler/clang.hpp 2011-05-09 07:36:39 EDT (Mon, 09 May 2011)
@@ -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

Modified: trunk/boost/config/compiler/codegear.hpp
==============================================================================
--- trunk/boost/config/compiler/codegear.hpp (original)
+++ trunk/boost/config/compiler/codegear.hpp 2011-05-09 07:36:39 EDT (Mon, 09 May 2011)
@@ -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:

Modified: trunk/boost/config/compiler/common_edg.hpp
==============================================================================
--- trunk/boost/config/compiler/common_edg.hpp (original)
+++ trunk/boost/config/compiler/common_edg.hpp 2011-05-09 07:36:39 EDT (Mon, 09 May 2011)
@@ -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

Modified: trunk/boost/config/compiler/digitalmars.hpp
==============================================================================
--- trunk/boost/config/compiler/digitalmars.hpp (original)
+++ trunk/boost/config/compiler/digitalmars.hpp 2011-05-09 07:36:39 EDT (Mon, 09 May 2011)
@@ -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

Modified: trunk/boost/config/compiler/gcc.hpp
==============================================================================
--- trunk/boost/config/compiler/gcc.hpp (original)
+++ trunk/boost/config/compiler/gcc.hpp 2011-05-09 07:36:39 EDT (Mon, 09 May 2011)
@@ -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

Modified: trunk/boost/config/compiler/gcc_xml.hpp
==============================================================================
--- trunk/boost/config/compiler/gcc_xml.hpp (original)
+++ trunk/boost/config/compiler/gcc_xml.hpp 2011-05-09 07:36:39 EDT (Mon, 09 May 2011)
@@ -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__
 

Modified: trunk/boost/config/compiler/metrowerks.hpp
==============================================================================
--- trunk/boost/config/compiler/metrowerks.hpp (original)
+++ trunk/boost/config/compiler/metrowerks.hpp 2011-05-09 07:36:39 EDT (Mon, 09 May 2011)
@@ -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)
 

Modified: trunk/boost/config/compiler/mpw.hpp
==============================================================================
--- trunk/boost/config/compiler/mpw.hpp (original)
+++ trunk/boost/config/compiler/mpw.hpp 2011-05-09 07:36:39 EDT (Mon, 09 May 2011)
@@ -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:

Modified: trunk/boost/config/compiler/pathscale.hpp
==============================================================================
--- trunk/boost/config/compiler/pathscale.hpp (original)
+++ trunk/boost/config/compiler/pathscale.hpp 2011-05-09 07:36:39 EDT (Mon, 09 May 2011)
@@ -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

Modified: trunk/boost/config/compiler/pgi.hpp
==============================================================================
--- trunk/boost/config/compiler/pgi.hpp (original)
+++ trunk/boost/config/compiler/pgi.hpp 2011-05-09 07:36:39 EDT (Mon, 09 May 2011)
@@ -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:

Modified: trunk/boost/config/compiler/sunpro_cc.hpp
==============================================================================
--- trunk/boost/config/compiler/sunpro_cc.hpp (original)
+++ trunk/boost/config/compiler/sunpro_cc.hpp 2011-05-09 07:36:39 EDT (Mon, 09 May 2011)
@@ -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

Modified: trunk/boost/config/compiler/vacpp.hpp
==============================================================================
--- trunk/boost/config/compiler/vacpp.hpp (original)
+++ trunk/boost/config/compiler/vacpp.hpp 2011-05-09 07:36:39 EDT (Mon, 09 May 2011)
@@ -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

Modified: trunk/boost/config/compiler/visualc.hpp
==============================================================================
--- trunk/boost/config/compiler/visualc.hpp (original)
+++ trunk/boost/config/compiler/visualc.hpp 2011-05-09 07:36:39 EDT (Mon, 09 May 2011)
@@ -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:
 //

Modified: trunk/libs/config/doc/html/boost_config/boost_macro_reference.html
==============================================================================
--- trunk/libs/config/doc/html/boost_config/boost_macro_reference.html (original)
+++ trunk/libs/config/doc/html/boost_config/boost_macro_reference.html 2011-05-09 07:36:39 EDT (Mon, 09 May 2011)
@@ -2807,6 +2807,19 @@
 <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>
                 </p>
               </td>

Modified: trunk/libs/config/doc/html/index.html
==============================================================================
--- trunk/libs/config/doc/html/index.html (original)
+++ trunk/libs/config/doc/html/index.html 2011-05-09 07:36:39 EDT (Mon, 09 May 2011)
@@ -28,7 +28,7 @@
 </h3></div></div></div>
 <div><p class="copyright">Copyright &#169; 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 http://www.boost.org/LICENSE_1_0.txt)
       </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>

Modified: trunk/libs/config/doc/macro_reference.qbk
==============================================================================
--- trunk/libs/config/doc/macro_reference.qbk (original)
+++ trunk/libs/config/doc/macro_reference.qbk 2011-05-09 07:36:39 EDT (Mon, 09 May 2011)
@@ -620,7 +620,10 @@
 ]]
 [[`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.
 ]]

Modified: trunk/libs/config/test/all/Jamfile.v2
==============================================================================
--- trunk/libs/config/test/all/Jamfile.v2 (original)
+++ trunk/libs/config/test/all/Jamfile.v2 2011-05-09 07:36:39 EDT (Mon, 09 May 2011)
@@ -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_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 ] ;

Modified: trunk/libs/config/test/boost_no_defaulted_functions.ipp
==============================================================================
--- trunk/libs/config/test/boost_no_defaulted_functions.ipp (original)
+++ trunk/libs/config/test/boost_no_defaulted_functions.ipp 2011-05-09 07:36:39 EDT (Mon, 09 May 2011)
@@ -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
 

Modified: trunk/libs/config/test/boost_no_deleted_functions.ipp
==============================================================================
--- trunk/libs/config/test/boost_no_deleted_functions.ipp (original)
+++ trunk/libs/config/test/boost_no_deleted_functions.ipp 2011-05-09 07:36:39 EDT (Mon, 09 May 2011)
@@ -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
 

Modified: trunk/libs/config/test/boost_no_explicit_cvt_ops.ipp
==============================================================================
--- trunk/libs/config/test/boost_no_explicit_cvt_ops.ipp (original)
+++ trunk/libs/config/test/boost_no_explicit_cvt_ops.ipp 2011-05-09 07:36:39 EDT (Mon, 09 May 2011)
@@ -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
 

Modified: trunk/libs/config/test/boost_no_lambdas.ipp
==============================================================================
--- trunk/libs/config/test/boost_no_lambdas.ipp (original)
+++ trunk/libs/config/test/boost_no_lambdas.ipp 2011-05-09 07:36:39 EDT (Mon, 09 May 2011)
@@ -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
 

Modified: trunk/libs/config/test/config_info.cpp
==============================================================================
--- trunk/libs/config/test/config_info.cpp (original)
+++ trunk/libs/config/test/config_info.cpp 2011-05-09 07:36:39 EDT (Mon, 09 May 2011)
@@ -1067,6 +1067,7 @@
    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 @@
 
 
 
+
    // END GENERATED BLOCK
 
    PRINT_MACRO(BOOST_INTEL);

Modified: trunk/libs/config/test/config_test.cpp
==============================================================================
--- trunk/libs/config/test/config_test.cpp (original)
+++ trunk/libs/config/test/config_test.cpp 2011-05-09 07:36:39 EDT (Mon, 09 May 2011)
@@ -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 @@
 #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 @@
       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;


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk