Use same style of detection in pointer_traits and allocator_traits

This commit is contained in:
Glen Fernandes committed 2021-12-15 15:30:57 -05:00
1 parent a2b37091eb
commit 02b3f91fc3
3 files changed
+28 -30

No files matched your search

@@ -24,7 +24,7 @@ class has_pointer_to {
static char check(long);
public:
static const bool value = sizeof(check<T>(0)) != 1;
static const bool value = sizeof(check<T>(0)) > 1;
};
struct P1 { };