1
0
forked from boostorg/core

Use same style of detection in pointer_traits and allocator_traits

This commit is contained in:
Glen Fernandes
2021-12-15 15:30:42 -05:00
parent a2b37091eb
commit 02b3f91fc3
3 changed files with 28 additions and 30 deletions

View File

@ -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 { };