From 0e597f576875670c699fe33da9191ed74d9e1cc2 Mon Sep 17 00:00:00 2001 From: Dave Abrahams Date: Thu, 28 Feb 2002 15:38:21 +0000 Subject: [PATCH] Suppress some warnings on older EDGs [SVN r12984] --- include/boost/python/converter/from_python.hpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/include/boost/python/converter/from_python.hpp b/include/boost/python/converter/from_python.hpp index f2680ef3..f9192be2 100644 --- a/include/boost/python/converter/from_python.hpp +++ b/include/boost/python/converter/from_python.hpp @@ -10,6 +10,7 @@ # include # include # include +# include # include # include # include @@ -179,7 +180,9 @@ namespace detail template inline void write_void_ptr_reference(void const volatile* storage, void* ptr, U&(*)()) { - write_void_ptr(storage, ptr, U(0)); + // stripping CV qualification suppresses warnings on older EDGs + typedef typename remove_cv::type u_stripped; + write_void_ptr(storage, ptr, u_stripped(0)); } }