From ac2c3977a41162f746f9b543004bdbdaf0bd3b31 Mon Sep 17 00:00:00 2001 From: John Maddock Date: Thu, 30 Aug 2001 10:55:48 +0000 Subject: [PATCH] Fixed possible bug in is_empty for types that are not default constructible [SVN r10965] --- include/boost/type_traits/object_traits.hpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/include/boost/type_traits/object_traits.hpp b/include/boost/type_traits/object_traits.hpp index 36e2ad9..3997243 100644 --- a/include/boost/type_traits/object_traits.hpp +++ b/include/boost/type_traits/object_traits.hpp @@ -223,9 +223,9 @@ namespace detail{ template struct empty_helper_t1 : public T { -#ifdef __MWERKS__ +//#ifdef __MWERKS__ empty_helper_t1(); // hh compiler bug workaround -#endif +//#endif int i[256]; }; struct empty_helper_t2 { int i[256]; }; @@ -348,3 +348,4 @@ template struct is_empty +