FMT_EXPLICIT -> explicit, FMT_NULL -> nullptr

This commit is contained in:
Victor Zverovich
2019-05-30 07:01:31 -07:00
parent 4a7966c773
commit d07cc2026b
25 changed files with 163 additions and 193 deletions
+2 -2
View File
@@ -26,13 +26,13 @@ template <typename Allocator> class allocator_ref {
void move(allocator_ref& other) {
alloc_ = other.alloc_;
other.alloc_ = FMT_NULL;
other.alloc_ = nullptr;
}
public:
typedef typename Allocator::value_type value_type;
explicit allocator_ref(Allocator* alloc = FMT_NULL) : alloc_(alloc) {}
explicit allocator_ref(Allocator* alloc = nullptr) : alloc_(alloc) {}
allocator_ref(const allocator_ref& other) : alloc_(other.alloc_) {}
allocator_ref(allocator_ref&& other) { move(other); }