Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r86032 - trunk/boost
From: steveire_at_[hidden]
Date: 2013-09-29 20:20:00


Author: skelly
Date: 2013-09-29 20:20:00 EDT (Sun, 29 Sep 2013)
New Revision: 86032
URL: http://svn.boost.org/trac/boost/changeset/86032

Log:
ScopeExit: Remove obsolete MSVC version check.

Text files modified:
   trunk/boost/scope_exit.hpp | 26 +++-----------------------
   1 files changed, 3 insertions(+), 23 deletions(-)

Modified: trunk/boost/scope_exit.hpp
==============================================================================
--- trunk/boost/scope_exit.hpp Sun Sep 29 20:19:48 2013 (r86031)
+++ trunk/boost/scope_exit.hpp 2013-09-29 20:20:00 EDT (Sun, 29 Sep 2013) (r86032)
@@ -222,7 +222,7 @@
 #include <boost/type_traits/is_function.hpp>
 #include <boost/utility/enable_if.hpp>
 
-#if BOOST_WORKAROUND(BOOST_MSVC, >= 1310)
+#if defined(BOOST_MSVC)
 # include <typeinfo>
 #endif
 
@@ -230,7 +230,7 @@
         namespace msvc_typeof_this {
 
 // compile-time constant code
-#if BOOST_WORKAROUND(BOOST_MSVC, >=1300) && defined(_MSC_EXTENSIONS)
+#if defined(BOOST_MSVC) && defined(_MSC_EXTENSIONS)
 
 template<int N> struct the_counter;
 
@@ -278,27 +278,7 @@
 
 #endif // compile-time constant code
 
-#if BOOST_WORKAROUND(BOOST_MSVC, == 1300) // type-of code
-
-template<typename ID>
-struct msvc_extract_type
-{
- template<bool>
- struct id2type_impl;
-
- typedef id2type_impl<true> id2type;
-};
-
-template<typename T, typename ID>
-struct msvc_register_type : msvc_extract_type<ID>
-{
- template<>
- struct id2type_impl<true> { // VC7.0 specific bug-feature.
- typedef T type;
- };
-};
-
-#elif BOOST_WORKAROUND(BOOST_MSVC, >= 1400) // type-of code
+#if BOOST_WORKAROUND(BOOST_MSVC, >= 1400) // type-of code
 
 struct msvc_extract_type_default_param {};
 


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