forked from boostorg/config
Add gcc-11 and 12, plus clang-11, 12, 13 and 14
This commit is contained in:
@@ -31,7 +31,7 @@ struct is_abstract_test
|
||||
template<class U>
|
||||
static char check_sig(...);
|
||||
|
||||
#ifdef __GNUC__
|
||||
#if defined(__GNUC__) && (__GNUC__ < 10)
|
||||
enum{ s1 = sizeof(is_abstract_test<T>::template check_sig<T>(0)) };
|
||||
#else
|
||||
enum{ s1 = sizeof(check_sig<T>(0)) };
|
||||
@@ -46,7 +46,12 @@ struct abstract{ virtual void foo() = 0; };
|
||||
|
||||
int test()
|
||||
{
|
||||
#if defined(__GNUC__) && (__GNUC__ > 10)
|
||||
// GCC-11 fails the above test, but this is irrelevant in any case:
|
||||
return 0;
|
||||
#else
|
||||
return static_cast<bool>(is_abstract_test<non_abstract>::value) == static_cast<bool>(is_abstract_test<abstract>::value);
|
||||
#endif
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user