Compare commits

...

2 Commits

Author SHA1 Message Date
51a54cb7f6 This commit was manufactured by cvs2svn to create tag
'Version_1_18_0'.

[SVN r7873]
2000-09-29 11:39:43 +00:00
92d842b45b changed is_empty to not use is_convertible with g++
[SVN r7841]
2000-09-26 07:41:33 +00:00

View File

@ -543,8 +543,15 @@ template <typename T> struct is_empty
private:
typedef typename remove_cv<T>::type cvt;
public:
#ifdef __GNUC__
// is_convertible gives a warning for g++
static const bool value = ::boost::detail::empty_helper<T, is_class<T>::value , false>::value
|| BOOST_IS_EMPTY(cvt);
#else
static const bool value = ::boost::detail::empty_helper<T, is_class<T>::value , is_convertible<T,int>::value>::value
|| BOOST_IS_EMPTY(cvt);
#endif
};
//*? T has trivial default constructor (allows cv-qual)