diff options
author | DongHun Kwak <dh0128.kwak@samsung.com> | 2016-10-06 10:30:07 +0900 |
---|---|---|
committer | DongHun Kwak <dh0128.kwak@samsung.com> | 2016-10-06 10:32:57 +0900 |
commit | 71d216b90256936a9638f325af9bc69d720e75de (patch) | |
tree | 9c5f682d341c7c88ad0c8e3d4b262e00b6fb691a /boost/python/handle.hpp | |
parent | 733b5d5ae2c5d625211e2985ac25728ac3f54883 (diff) | |
download | boost-71d216b90256936a9638f325af9bc69d720e75de.tar.gz boost-71d216b90256936a9638f325af9bc69d720e75de.tar.bz2 boost-71d216b90256936a9638f325af9bc69d720e75de.zip |
Imported Upstream version 1.59.0
Change-Id: I2dde00f4eca71df3eea9d251dcaecde18a6c90a5
Signed-off-by: DongHun Kwak <dh0128.kwak@samsung.com>
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 |