diff --git a/include/boost/python/detail/construct.hpp b/include/boost/python/detail/construct.hpp index 55c0873f..f7b747f6 100644 --- a/include/boost/python/detail/construct.hpp +++ b/include/boost/python/detail/construct.hpp @@ -9,7 +9,13 @@ namespace boost { namespace python { namespace detail { template -void construct_pointee(void* storage, Arg& x, T const volatile*) +void construct_pointee(void* storage, Arg& x +# if !defined(BOOST_MSVC) || BOOST_MSVC > 1300 + , T const volatile* +# else + , T const* +# endif + ) { new (storage) T(x); }