From 7a4b24083852249b954eab1764eb7e1e5d99caf9 Mon Sep 17 00:00:00 2001 From: Stephen Kelly Date: Wed, 25 Sep 2013 07:55:17 +0000 Subject: [PATCH] Python: Remove use of obsolete BOOST_PYTHON_EXPLICIT_TT_DEF macro. [SVN r85880] --- include/boost/python/opaque_pointer_converter.hpp | 5 ++--- include/boost/python/type_id.hpp | 6 +++--- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/include/boost/python/opaque_pointer_converter.hpp b/include/boost/python/opaque_pointer_converter.hpp index 10eb4234..688f3910 100644 --- a/include/boost/python/opaque_pointer_converter.hpp +++ b/include/boost/python/opaque_pointer_converter.hpp @@ -182,13 +182,12 @@ PyTypeObject opaque::type_object = # define BOOST_PYTHON_OPAQUE_SPECIALIZED_TYPE_ID(Pointee) \ namespace boost { namespace python { \ template<> \ - inline type_info type_id(BOOST_PYTHON_EXPLICIT_TT_DEF(Pointee)) \ + inline type_info type_id() \ { \ return type_info (typeid (Pointee *)); \ } \ template<> \ - inline type_info type_id( \ - BOOST_PYTHON_EXPLICIT_TT_DEF(const volatile Pointee&)) \ + inline type_info type_id() \ { \ return type_info (typeid (Pointee *)); \ } \ diff --git a/include/boost/python/type_id.hpp b/include/boost/python/type_id.hpp index 762a4874..72a967d1 100644 --- a/include/boost/python/type_id.hpp +++ b/include/boost/python/type_id.hpp @@ -97,7 +97,7 @@ inline type_info type_id(BOOST_EXPLICIT_TEMPLATE_TYPE(T)) # define BOOST_PYTHON_SIGNED_INTEGRAL_TYPE_ID(T) \ template <> \ -inline type_info type_id(BOOST_PYTHON_EXPLICIT_TT_DEF(T)) \ +inline type_info type_id() \ { \ return type_info(typeid(T)); \ } @@ -171,13 +171,13 @@ BOOST_PYTHON_DECL std::ostream& operator<<(std::ostream&, type_info const&); # if !BOOST_WORKAROUND(BOOST_MSVC, == 1200) template<> -inline type_info type_id(BOOST_PYTHON_EXPLICIT_TT_DEF(void)) +inline type_info type_id() { return type_info (typeid (void *)); } # ifndef BOOST_NO_CV_VOID_SPECIALIZATIONS template<> -inline type_info type_id(BOOST_PYTHON_EXPLICIT_TT_DEF(const volatile void)) +inline type_info type_id() { return type_info (typeid (void *)); }