Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r85894 - in trunk/boost: . bimap bimap/relation math/constants python variant/detail
From: steveire_at_[hidden]
Date: 2013-09-25 06:28:56


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

Log:
Remove use of obsolete BOOST_EXPLICIT_TEMPLATE_TYPE{,_SPEC} macros.

Text files modified:
   trunk/boost/bimap/bimap.hpp | 6 ++----
   trunk/boost/bimap/relation/mutant_relation.hpp | 4 ++--
   trunk/boost/bimap/relation/structured_pair.hpp | 4 ++--
   trunk/boost/math/constants/constants.hpp | 4 ++--
   trunk/boost/multi_index_container.hpp | 5 ++---
   trunk/boost/python/register_ptr_to_python.hpp | 2 +-
   trunk/boost/python/type_id.hpp | 2 +-
   trunk/boost/variant/detail/forced_return.hpp | 8 ++++----
   8 files changed, 16 insertions(+), 19 deletions(-)

Modified: trunk/boost/bimap/bimap.hpp
==============================================================================
--- trunk/boost/bimap/bimap.hpp Wed Sep 25 06:28:28 2013 (r85893)
+++ trunk/boost/bimap/bimap.hpp 2013-09-25 06:28:56 EDT (Wed, 25 Sep 2013) (r85894)
@@ -369,16 +369,14 @@
 
     template< class Tag >
     BOOST_DEDUCED_TYPENAME ::boost::bimaps::support::
- map_type_by<Tag,bimap>::type &
- by(BOOST_EXPLICIT_TEMPLATE_TYPE(Tag))
+ map_type_by<Tag,bimap>::type &by()
     {
         return ::boost::bimaps::support::map_by<Tag>(*this);
     }
 
     template< class Tag >
     const BOOST_DEDUCED_TYPENAME ::boost::bimaps::support::
- map_type_by<Tag,bimap>::type &
- by(BOOST_EXPLICIT_TEMPLATE_TYPE(Tag)) const
+ map_type_by<Tag,bimap>::type &by() const
     {
         return ::boost::bimaps::support::map_by<Tag>(*this);
     }

Modified: trunk/boost/bimap/relation/mutant_relation.hpp
==============================================================================
--- trunk/boost/bimap/relation/mutant_relation.hpp Wed Sep 25 06:28:28 2013 (r85893)
+++ trunk/boost/bimap/relation/mutant_relation.hpp 2013-09-25 06:28:56 EDT (Wed, 25 Sep 2013) (r85894)
@@ -334,7 +334,7 @@
     template< class Tag >
     const BOOST_DEDUCED_TYPENAME ::boost::bimaps::relation::support::
         result_of::get<Tag,const mutant_relation>::type
- get(BOOST_EXPLICIT_TEMPLATE_TYPE(Tag)) const
+ get() const
     {
         return ::boost::bimaps::relation::support::get<Tag>(*this);
     }
@@ -342,7 +342,7 @@
     template< class Tag >
     BOOST_DEDUCED_TYPENAME ::boost::bimaps::relation::support::
         result_of::get<Tag,mutant_relation>::type
- get(BOOST_EXPLICIT_TEMPLATE_TYPE(Tag))
+ get()
     {
         return ::boost::bimaps::relation::support::get<Tag>(*this);
     }

Modified: trunk/boost/bimap/relation/structured_pair.hpp
==============================================================================
--- trunk/boost/bimap/relation/structured_pair.hpp Wed Sep 25 06:28:28 2013 (r85893)
+++ trunk/boost/bimap/relation/structured_pair.hpp 2013-09-25 06:28:56 EDT (Wed, 25 Sep 2013) (r85894)
@@ -337,7 +337,7 @@
     template< class Tag >
     const BOOST_DEDUCED_TYPENAME ::boost::bimaps::relation::support::
         result_of::get<Tag,const structured_pair>::type
- get(BOOST_EXPLICIT_TEMPLATE_TYPE(Tag)) const
+ get() const
     {
         return ::boost::bimaps::relation::support::get<Tag>(*this);
     }
@@ -345,7 +345,7 @@
     template< class Tag >
     BOOST_DEDUCED_TYPENAME ::boost::bimaps::relation::support::
         result_of::get<Tag,structured_pair>::type
- get(BOOST_EXPLICIT_TEMPLATE_TYPE(Tag))
+ get()
     {
         return ::boost::bimaps::relation::support::get<Tag>(*this);
     }

Modified: trunk/boost/math/constants/constants.hpp
==============================================================================
--- trunk/boost/math/constants/constants.hpp Wed Sep 25 06:28:28 2013 (r85893)
+++ trunk/boost/math/constants/constants.hpp 2013-09-25 06:28:56 EDT (Wed, 25 Sep 2013) (r85894)
@@ -139,7 +139,7 @@
          return p;
       }
 
- template <class T, const T& (*F)(BOOST_EXPLICIT_TEMPLATE_TYPE_SPEC(T))>
+ template <class T, const T& (*F)()>
       struct constant_initializer
       {
          static void force_instantiate()
@@ -158,7 +158,7 @@
          static const initializer init;
       };
 
- template <class T, const T& (*F)(BOOST_EXPLICIT_TEMPLATE_TYPE_SPEC(T))>
+ template <class T, const T& (*F)()>
       typename constant_initializer<T, F>::initializer const constant_initializer<T, F>::init;
 
       template <class T, int N, const T& (*F)(BOOST_MATH_EXPLICIT_TEMPLATE_TYPE_SPEC(mpl::int_<N>) BOOST_MATH_APPEND_EXPLICIT_TEMPLATE_TYPE_SPEC(T))>

Modified: trunk/boost/multi_index_container.hpp
==============================================================================
--- trunk/boost/multi_index_container.hpp Wed Sep 25 06:28:28 2013 (r85893)
+++ trunk/boost/multi_index_container.hpp 2013-09-25 06:28:56 EDT (Wed, 25 Sep 2013) (r85894)
@@ -425,14 +425,13 @@
   };
 
   template<typename Tag>
- typename index<Tag>::type& get(BOOST_EXPLICIT_TEMPLATE_TYPE(Tag))
+ typename index<Tag>::type& get()
   {
     return *this;
   }
 
   template<typename Tag>
- const typename index<Tag>::type& get(
- BOOST_EXPLICIT_TEMPLATE_TYPE(Tag))const
+ const typename index<Tag>::type& get()const
   {
     return *this;
   }

Modified: trunk/boost/python/register_ptr_to_python.hpp
==============================================================================
--- trunk/boost/python/register_ptr_to_python.hpp Wed Sep 25 06:28:28 2013 (r85893)
+++ trunk/boost/python/register_ptr_to_python.hpp 2013-09-25 06:28:56 EDT (Wed, 25 Sep 2013) (r85894)
@@ -12,7 +12,7 @@
 namespace boost { namespace python {
     
 template <class P>
-void register_ptr_to_python(BOOST_EXPLICIT_TEMPLATE_TYPE(P))
+void register_ptr_to_python()
 {
     typedef typename boost::python::pointee<P>::type X;
     objects::class_value_wrapper<

Modified: trunk/boost/python/type_id.hpp
==============================================================================
--- trunk/boost/python/type_id.hpp Wed Sep 25 06:28:28 2013 (r85893)
+++ trunk/boost/python/type_id.hpp 2013-09-25 06:28:56 EDT (Wed, 25 Sep 2013) (r85894)
@@ -74,7 +74,7 @@
 # define BOOST_PYTHON_EXPLICIT_TT_DEF(T)
 
 template <class T>
-inline type_info type_id(BOOST_EXPLICIT_TEMPLATE_TYPE(T))
+inline type_info type_id()
 {
     return type_info(
 # if !defined(_MSC_VER) \

Modified: trunk/boost/variant/detail/forced_return.hpp
==============================================================================
--- trunk/boost/variant/detail/forced_return.hpp Wed Sep 25 06:28:28 2013 (r85893)
+++ trunk/boost/variant/detail/forced_return.hpp 2013-09-25 06:28:56 EDT (Wed, 25 Sep 2013) (r85894)
@@ -38,7 +38,7 @@
 // "standard" implementation:
 
 template <typename T>
-inline T forced_return( BOOST_EXPLICIT_TEMPLATE_TYPE(T) )
+inline T forced_return()
 {
     // logical error: should never be here! (see above)
     BOOST_ASSERT(false);
@@ -49,7 +49,7 @@
 }
 
 template <>
-inline void forced_return<void>( BOOST_EXPLICIT_TEMPLATE_TYPE_SPEC(void) )
+inline void forced_return<void>()
 {
     // logical error: should never be here! (see above)
     BOOST_ASSERT(false);
@@ -66,7 +66,7 @@
 template <typename T>
 inline
     BOOST_VARIANT_AUX_GENERIC_RESULT_TYPE(T)
-forced_return( BOOST_EXPLICIT_TEMPLATE_TYPE(T) )
+forced_return()
 {
     // logical error: should never be here! (see above)
     BOOST_ASSERT(false);
@@ -88,7 +88,7 @@
 template <typename T>
 inline
     BOOST_VARIANT_AUX_GENERIC_RESULT_TYPE(T)
-forced_return( BOOST_EXPLICIT_TEMPLATE_TYPE(T) )
+forced_return()
 {
     // logical error: should never be here! (see above)
     BOOST_ASSERT(false);


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