diff --git a/include/boost/python/detail/borrowed_ptr.hpp b/include/boost/python/detail/borrowed_ptr.hpp index 4e6d187a..055c8b7c 100755 --- a/include/boost/python/detail/borrowed_ptr.hpp +++ b/include/boost/python/detail/borrowed_ptr.hpp @@ -29,6 +29,24 @@ struct is_borrowed_ptr*> BOOST_STATIC_CONSTANT(bool, value = true); }; +template +struct is_borrowed_ptr const*> +{ + BOOST_STATIC_CONSTANT(bool, value = true); +}; + +template +struct is_borrowed_ptr volatile*> +{ + BOOST_STATIC_CONSTANT(bool, value = true); +}; + +template +struct is_borrowed_ptr const volatile*> +{ + BOOST_STATIC_CONSTANT(bool, value = true); +}; + # else // no partial specialization typedef char (&yes_borrowed_ptr_t)[1];