Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r86038 - trunk/boost/tuple/detail
From: steveire_at_[hidden]
Date: 2013-09-29 20:21:22


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

Log:
Tuple: Remove obsolete MSVC version check.

Text files modified:
   trunk/boost/tuple/detail/tuple_basic_no_partial_spec.hpp | 61 ----------------------------------------
   1 files changed, 0 insertions(+), 61 deletions(-)

Modified: trunk/boost/tuple/detail/tuple_basic_no_partial_spec.hpp
==============================================================================
--- trunk/boost/tuple/detail/tuple_basic_no_partial_spec.hpp Sun Sep 29 20:21:08 2013 (r86037)
+++ trunk/boost/tuple/detail/tuple_basic_no_partial_spec.hpp 2013-09-29 20:21:22 EDT (Sun, 29 Sep 2013) (r86038)
@@ -103,14 +103,8 @@
     template <class MyTail>
     struct init_tail
     {
- // Each of vc6 and vc7 seem to require a different formulation
- // of this return type
         template <class H, class T>
-#if BOOST_WORKAROUND(BOOST_MSVC, < 1300)
- static typename add_reference<typename add_const<T>::type>::type
-#else
         static typename add_const_reference<T>::type
-#endif
         execute( cons<H,T> const& u, long )
         {
             return u.get_tail();
@@ -313,59 +307,6 @@
     };
 
     namespace detail {
-
-#if defined(BOOST_MSVC) && (BOOST_MSVC == 1300)
- // special workaround for vc7:
-
- template <bool x>
- struct reference_adder
- {
- template <class T>
- struct rebind
- {
- typedef T& type;
- };
- };
-
- template <>
- struct reference_adder<true>
- {
- template <class T>
- struct rebind
- {
- typedef T type;
- };
- };
-
-
- // Return a reference to the Nth type of the given Tuple
- template<int N, typename Tuple>
- struct element_ref
- {
- private:
- typedef typename element<N, Tuple>::RET elt_type;
- enum { is_ref = is_reference<elt_type>::value };
-
- public:
- typedef reference_adder<is_ref>::rebind<elt_type>::type RET;
- typedef RET type;
- };
-
- // Return a const reference to the Nth type of the given Tuple
- template<int N, typename Tuple>
- struct element_const_ref
- {
- private:
- typedef typename element<N, Tuple>::RET elt_type;
- enum { is_ref = is_reference<elt_type>::value };
-
- public:
- typedef reference_adder<is_ref>::rebind<const elt_type>::type RET;
- typedef RET type;
- };
-
-#else // vc7
-
       // Return a reference to the Nth type of the given Tuple
       template<int N, typename Tuple>
       struct element_ref
@@ -389,8 +330,6 @@
         typedef typename add_reference<const elt_type>::type RET;
         typedef RET type;
       };
-#endif // vc7
-
     } // namespace detail
 
     // Get length of this tuple


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