From 92d842b45bb529b5245075566bca829db34542b9 Mon Sep 17 00:00:00 2001 From: Jeremy Siek Date: Tue, 26 Sep 2000 07:41:33 +0000 Subject: [PATCH] changed is_empty to not use is_convertible with g++ [SVN r7841] --- include/boost/detail/type_traits.hpp | 7 +++++++ 1 file changed, 7 insertions(+) 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)