diff --git a/include/boost/python/override.hpp b/include/boost/python/override.hpp index 29affd59..b6fa97a0 100755 --- a/include/boost/python/override.hpp +++ b/include/boost/python/override.hpp @@ -46,6 +46,15 @@ namespace detail return converter(m_obj.release()); } +# if BOOST_WORKAROUND(_MSC_FULL_VER, BOOST_TESTED_AT(140050215)) + template + operator T*() + { + converter::return_from_python converter; + return converter(m_obj.release()); + } +# endif + # if !defined(BOOST_MSVC) || BOOST_WORKAROUND(_MSC_FULL_VER, > 140040607) template operator T&() const