diff --git boost/exception/exception.hpp boost/exception/exception.hpp
index fd516dd..87063af 100644
--- boost/exception/exception.hpp
+++ boost/exception/exception.hpp
@@ -334,7 +334,7 @@ boost
         struct
         enable_error_info_return_type
             {
-            typedef typename enable_error_info_helper<T,sizeof(exception_detail::dispatch_boost_exception((T*)0))>::type type;
+            typedef typename enable_error_info_helper<T,sizeof(exception_detail::dispatch_boost_exception(reinterpret_cast<T*>(0)))>::type type;
             };
         }
 

