This commit is contained in:
parent
7439310a9e
commit
223c975e0c
@ -143,7 +143,7 @@ template<typename T>
|
||||
constexpr bool memberable(...) { return false; }
|
||||
|
||||
template<typename T>
|
||||
struct is_class: integral_constant<bool, !is_union<T>::value && memberable<T>(0)> {};
|
||||
struct is_class: integral_constant<bool, !is_union_v<T> && memberable<T>(nullptr)> {};
|
||||
|
||||
namespace test {
|
||||
struct TestClass {int i;};
|
||||
|
Loading…
x
Reference in New Issue
Block a user