Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r85895 - in trunk/boost: . tuple/detail
From: steveire_at_[hidden]
Date: 2013-09-25 06:29:10


Author: skelly
Date: 2013-09-25 06:29:10 EDT (Wed, 25 Sep 2013)
New Revision: 85895
URL: http://svn.boost.org/trac/boost/changeset/85895

Log:
Remove use of obsolete BOOST_EXPLICIT_TEMPLATE_NON_TYPE macro.

Text files modified:
   trunk/boost/multi_index_container.hpp | 5 ++---
   trunk/boost/tuple/detail/tuple_basic.hpp | 4 ++--
   2 files changed, 4 insertions(+), 5 deletions(-)

Modified: trunk/boost/multi_index_container.hpp
==============================================================================
--- trunk/boost/multi_index_container.hpp Wed Sep 25 06:28:56 2013 (r85894)
+++ trunk/boost/multi_index_container.hpp 2013-09-25 06:29:10 EDT (Wed, 25 Sep 2013) (r85895)
@@ -391,15 +391,14 @@
   };
 
   template<int N>
- typename nth_index<N>::type& get(BOOST_EXPLICIT_TEMPLATE_NON_TYPE(int,N))
+ typename nth_index<N>::type& get()
   {
     BOOST_STATIC_ASSERT(N>=0&&N<mpl::size<index_type_list>::type::value);
     return *this;
   }
 
   template<int N>
- const typename nth_index<N>::type& get(
- BOOST_EXPLICIT_TEMPLATE_NON_TYPE(int,N))const
+ const typename nth_index<N>::type& get()const
   {
     BOOST_STATIC_ASSERT(N>=0&&N<mpl::size<index_type_list>::type::value);
     return *this;

Modified: trunk/boost/tuple/detail/tuple_basic.hpp
==============================================================================
--- trunk/boost/tuple/detail/tuple_basic.hpp Wed Sep 25 06:28:56 2013 (r85894)
+++ trunk/boost/tuple/detail/tuple_basic.hpp 2013-09-25 06:29:10 EDT (Wed, 25 Sep 2013) (r85895)
@@ -399,7 +399,7 @@
   typename access_traits<
              typename element<N, self_type>::type
>::non_const_type
- get(BOOST_EXPLICIT_TEMPLATE_NON_TYPE(int, N)) {
+ get() {
     return boost::tuples::get<N>(*this);
   }
 
@@ -407,7 +407,7 @@
   typename access_traits<
              typename element<N, self_type>::type
>::const_type
- get(BOOST_EXPLICIT_TEMPLATE_NON_TYPE(int, N)) const {
+ get() const {
     return boost::tuples::get<N>(*this);
   }
 


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