From 94cfe30b77f3763d6d6ea785187e45b212ee7e91 Mon Sep 17 00:00:00 2001 From: Dave Abrahams Date: Fri, 26 Apr 2002 14:15:33 +0000 Subject: [PATCH] Workarounds for VC7.01 [SVN r13565] --- include/boost/python/detail/indirect_traits.hpp | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/include/boost/python/detail/indirect_traits.hpp b/include/boost/python/detail/indirect_traits.hpp index a3e67dd3..bcfdd79a 100644 --- a/include/boost/python/detail/indirect_traits.hpp +++ b/include/boost/python/detail/indirect_traits.hpp @@ -25,6 +25,14 @@ struct is_reference_to_const BOOST_STATIC_CONSTANT(bool, value = true); }; +# if defined(BOOST_MSVC) && _MSC_FULL_VER <= 13012108 // vc7.01 alpha workaround +template +struct is_reference_to_const +{ + static const bool value = true; +}; +# endif + # if 0 // Corresponding code doesn't work on MSVC yet template struct is_reference_to_function @@ -112,6 +120,15 @@ struct is_reference_to_volatile BOOST_STATIC_CONSTANT(bool, value = true); }; +# if defined(BOOST_MSVC) && _MSC_FULL_VER <= 13012108 // vc7.01 alpha workaround +template +struct is_reference_to_volatile +{ + static const bool value = true; +}; +# endif + + template struct is_reference_to_pointer {