diff options
Diffstat (limited to 'src/mongo/base/clonable_ptr.h')
-rw-r--r-- | src/mongo/base/clonable_ptr.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/base/clonable_ptr.h b/src/mongo/base/clonable_ptr.h index 135fd272fa0..42b0c63c1db 100644 --- a/src/mongo/base/clonable_ptr.h +++ b/src/mongo/base/clonable_ptr.h @@ -63,7 +63,7 @@ struct detect_clone_factory_type_member_impl { template <typename U> static Yes& test(U*); - static constexpr bool value = sizeof(test<Derived>(0)) == sizeof(Yes); + static constexpr bool value = sizeof(test<Derived>(nullptr)) == sizeof(Yes); using type = typename std::integral_constant<bool, value>::type; }; |