diff options
Diffstat (limited to 'boost/python/handle.hpp')
-rw-r--r--[-rwxr-xr-x] | boost/python/handle.hpp | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/boost/python/handle.hpp b/boost/python/handle.hpp index 461a219ad8..ee9a7cd09d 100755..100644 --- a/boost/python/handle.hpp +++ b/boost/python/handle.hpp @@ -87,8 +87,6 @@ class handle return *this; } -#if !defined(BOOST_MSVC) || (BOOST_MSVC >= 1300) - template<typename Y> handle& operator=(handle<Y> const & r) // never throws { @@ -97,8 +95,6 @@ class handle return *this; } -#endif - template <typename Y> handle(handle<Y> const& r) : m_p(python::xincref(python::upcast<T>(r.get()))) @@ -159,7 +155,6 @@ typedef handle<PyTypeObject> type_handle; // // Compile-time introspection // -# ifndef BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION template<typename T> class is_handle { @@ -173,28 +168,6 @@ class is_handle<handle<T> > public: BOOST_STATIC_CONSTANT(bool, value = true); }; -# else -namespace detail -{ - typedef char (&yes_handle_t)[1]; - typedef char (&no_handle_t)[2]; - - no_handle_t is_handle_test(...); - - template<typename T> - yes_handle_t is_handle_test(boost::type< handle<T> >); -} - -template<typename T> -class is_handle -{ - public: - BOOST_STATIC_CONSTANT( - bool, value = ( - sizeof(detail::is_handle_test(boost::type<T>())) - == sizeof(detail::yes_handle_t))); -}; -# endif // // implementations |