Ticket #2327: libs_config.patch
File libs_config.patch, 961 bytes (added by , 14 years ago) |
---|
-
config/test/boost_no_is_abstract.ipp
12 12 13 13 namespace boost_no_is_abstract{ 14 14 15 #if defined(__CODEGEARC__) 15 16 template<class T> 16 17 struct is_abstract_test 17 18 { 18 // Deduction fails if T is void, function type, 19 // reference type (14.8.2/2)or an abstract class type 19 enum{ value = __is_abstract(T) }; 20 }; 21 #else 22 template<class T> 23 struct is_abstract_test 24 { 25 // Deduction fails if T is void, function type, 26 // reference type (14.8.2/2)or an abstract class type 20 27 // according to review status issue #337 21 28 // 22 29 template<class U> … … 29 36 #else 30 37 enum{ s1 = sizeof(check_sig<T>(0)) }; 31 38 #endif 32 39 33 40 enum{ value = (s1 == sizeof(char)) }; 34 41 }; 42 #endif 35 43 36 44 struct non_abstract{}; 37 45 struct abstract{ virtual void foo() = 0; };