Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r86653 - in branches/release: boost libs/any
From: antoshkka_at_[hidden]
Date: 2013-11-12 11:17:42


Author: apolukhin
Date: 2013-11-12 11:17:42 EST (Tue, 12 Nov 2013)
New Revision: 86653
URL: http://svn.boost.org/trac/boost/changeset/86653

Log:
Merge from trunk:
* dropped support of antique compilers (thanks to Stephen Kelly for doing it all around the boost!)

Properties modified:
   branches/release/boost/any.hpp (contents, props changed)
   branches/release/libs/any/ (props changed)
Text files modified:
   branches/release/boost/any.hpp | 18 ++----------------
   1 files changed, 2 insertions(+), 16 deletions(-)

Modified: branches/release/boost/any.hpp
==============================================================================
--- branches/release/boost/any.hpp Tue Nov 12 11:14:52 2013 (r86652)
+++ branches/release/boost/any.hpp 2013-11-12 11:17:42 EST (Tue, 12 Nov 2013) (r86653)
@@ -3,7 +3,7 @@
 #ifndef BOOST_ANY_INCLUDED
 #define BOOST_ANY_INCLUDED
 
-#if defined(_MSC_VER) && (_MSC_VER >= 1020)
+#if defined(_MSC_VER)
 # pragma once
 #endif
 
@@ -31,7 +31,7 @@
 
 // See boost/python/type_id.hpp
 // TODO: add BOOST_TYPEID_COMPARE_BY_NAME to config.hpp
-# if (defined(__GNUC__) && __GNUC__ >= 3) \
+# if defined(__GNUC__) \
  || defined(_AIX) \
  || ( defined(__sgi) && defined(__host_mips)) \
  || (defined(__hpux) && defined(__HP_aCC)) \
@@ -271,15 +271,6 @@
     {
         typedef BOOST_DEDUCED_TYPENAME remove_reference<ValueType>::type nonref;
 
-#ifdef BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION
- // If 'nonref' is still reference type, it means the user has not
- // specialized 'remove_reference'.
-
- // Please use BOOST_BROKEN_COMPILER_TYPE_TRAITS_SPECIALIZATION macro
- // to generate specialization of remove_reference for your class
- // See type traits library documentation for details
- BOOST_STATIC_ASSERT(!is_reference<nonref>::value);
-#endif
 
         nonref * result = any_cast<nonref>(&operand);
         if(!result)
@@ -303,11 +294,6 @@
     {
         typedef BOOST_DEDUCED_TYPENAME remove_reference<ValueType>::type nonref;
 
-#ifdef BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION
- // The comment in the above version of 'any_cast' explains when this
- // assert is fired and what to do.
- BOOST_STATIC_ASSERT(!is_reference<nonref>::value);
-#endif
 
         return any_cast<const nonref &>(const_cast<any &>(operand));
     }


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