Skip to content

Commit 9742c30

Browse files
committed
Stop Using type_traits details.
The type_traits internal details used here are being moved to make it clear they are details and subject to change. Old code will continue to work, but will warn about use of a deprecated header.
1 parent 97f894b commit 9742c30

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

include/boost/python/detail/msvc_typeinfo.hpp

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77

88
#include <typeinfo>
99
#include <boost/type.hpp>
10-
#include <boost/type_traits/config.hpp>
1110

1211
//
1312
// Fix for icc's broken typeid() implementation which doesn't strip
@@ -48,8 +47,14 @@ inline typeinfo typeid_ref(type<T>*, ...)
4847
return detail::typeid_ref_1((T(*)())0);
4948
}
5049

50+
#if defined(BOOST_MSVC) || (defined(__BORLANDC__) && !defined(BOOST_DISABLE_WIN32))
51+
# define BOOST_PYTT_DECL __cdecl
52+
#else
53+
# define BOOST_PYTT_DECL /**/
54+
#endif
55+
5156
template< typename T > T&(* is_ref_tester1(type<T>) )(type<T>) { return 0; }
52-
inline char BOOST_TT_DECL is_ref_tester1(...) { return 0; }
57+
inline char BOOST_PYTT_DECL is_ref_tester1(...) { return 0; }
5358

5459
template <class T>
5560
inline typeinfo msvc_typeid(boost::type<T>*)

0 commit comments

Comments
 (0)