mirror of
https://github.com/boostorg/core.git
synced 2025-11-28 21:30:09 +01:00
Use same style of detection in pointer_traits and allocator_traits
This commit is contained in:
@@ -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 { };
|
||||
|
||||
Reference in New Issue
Block a user