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)); } }