diff --git a/include/boost/detail/type_traits.hpp b/include/boost/detail/type_traits.hpp index 429889c..e507bfb 100644 --- a/include/boost/detail/type_traits.hpp +++ b/include/boost/detail/type_traits.hpp @@ -543,8 +543,15 @@ template struct is_empty private: typedef typename remove_cv::type cvt; public: +#ifdef __GNUC__ + // is_convertible gives a warning for g++ + static const bool value = ::boost::detail::empty_helper::value , false>::value + || BOOST_IS_EMPTY(cvt); + +#else static const bool value = ::boost::detail::empty_helper::value , is_convertible::value>::value || BOOST_IS_EMPTY(cvt); +#endif }; //*? T has trivial default constructor (allows cv-qual)