Ticket #2327: libs_config.patch

File libs_config.patch, 961 bytes (added by Nicola Musatti, 14 years ago)
  • config/test/boost_no_is_abstract.ipp

     
    1212
    1313namespace boost_no_is_abstract{
    1414
     15#if defined(__CODEGEARC__)
    1516template<class T>
    1617struct is_abstract_test
    1718{
    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
     22template<class T>
     23struct 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
    2027   // according to review status issue #337
    2128   //
    2229   template<class U>
     
    2936#else
    3037   enum{ s1 = sizeof(check_sig<T>(0)) };
    3138#endif
    32    
     39
    3340   enum{ value = (s1 == sizeof(char)) };
    3441};
     42#endif
    3543
    3644struct non_abstract{};
    3745struct abstract{ virtual void foo() = 0; };