From 41132af773acd8f878b95f41b2ce98925479c4f6 Mon Sep 17 00:00:00 2001 From: Dave Abrahams Date: Sun, 16 Jun 2002 22:59:09 +0000 Subject: [PATCH] Bug fix [SVN r14160] --- include/boost/python/detail/borrowed_ptr.hpp | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) 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];