Skip to content

Commit 7a4b240

Browse files
committed
Python: Remove use of obsolete BOOST_PYTHON_EXPLICIT_TT_DEF macro.
[SVN r85880]
1 parent f500202 commit 7a4b240

2 files changed

Lines changed: 5 additions & 6 deletions

File tree

include/boost/python/opaque_pointer_converter.hpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -182,13 +182,12 @@ PyTypeObject opaque<Pointee>::type_object =
182182
# define BOOST_PYTHON_OPAQUE_SPECIALIZED_TYPE_ID(Pointee) \
183183
namespace boost { namespace python { \
184184
template<> \
185-
inline type_info type_id<Pointee>(BOOST_PYTHON_EXPLICIT_TT_DEF(Pointee)) \
185+
inline type_info type_id<Pointee>() \
186186
{ \
187187
return type_info (typeid (Pointee *)); \
188188
} \
189189
template<> \
190-
inline type_info type_id<const volatile Pointee&>( \
191-
BOOST_PYTHON_EXPLICIT_TT_DEF(const volatile Pointee&)) \
190+
inline type_info type_id<const volatile Pointee&>() \
192191
{ \
193192
return type_info (typeid (Pointee *)); \
194193
} \

include/boost/python/type_id.hpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ inline type_info type_id(BOOST_EXPLICIT_TEMPLATE_TYPE(T))
9797

9898
# define BOOST_PYTHON_SIGNED_INTEGRAL_TYPE_ID(T) \
9999
template <> \
100-
inline type_info type_id<T>(BOOST_PYTHON_EXPLICIT_TT_DEF(T)) \
100+
inline type_info type_id<T>() \
101101
{ \
102102
return type_info(typeid(T)); \
103103
}
@@ -171,13 +171,13 @@ BOOST_PYTHON_DECL std::ostream& operator<<(std::ostream&, type_info const&);
171171

172172
# if !BOOST_WORKAROUND(BOOST_MSVC, == 1200)
173173
template<>
174-
inline type_info type_id<void>(BOOST_PYTHON_EXPLICIT_TT_DEF(void))
174+
inline type_info type_id<void>()
175175
{
176176
return type_info (typeid (void *));
177177
}
178178
# ifndef BOOST_NO_CV_VOID_SPECIALIZATIONS
179179
template<>
180-
inline type_info type_id<const volatile void>(BOOST_PYTHON_EXPLICIT_TT_DEF(const volatile void))
180+
inline type_info type_id<const volatile void>()
181181
{
182182
return type_info (typeid (void *));
183183
}

0 commit comments

Comments
 (0)