X-Git-Url: http://plrg.eecs.uci.edu/git/?p=folly.git;a=blobdiff_plain;f=folly%2FAtomicHashMap-inl.h;h=ee3da5da01f8b526d56636a11f24f097718b5891;hp=b4032ab2b2444f890b5e242e52907adf1bcc6cf2;hb=96ac8f8ff0c9bc9446eede119fdfee0fe7feaba3;hpb=7ebe7c2a249de44209e8bcc453e1a70bafd4ed19 diff --git a/folly/AtomicHashMap-inl.h b/folly/AtomicHashMap-inl.h index b4032ab2..ee3da5da 100644 --- a/folly/AtomicHashMap-inl.h +++ b/folly/AtomicHashMap-inl.h @@ -468,19 +468,17 @@ struct AtomicHashMap, IterVal, boost::forward_traversal_tag> { - explicit ahm_iterator() : ahm_(0) {} + explicit ahm_iterator() : ahm_(nullptr) {} // Conversion ctor for interoperability between const_iterator and // iterator. The enable_if<> magic keeps us well-behaved for // is_convertible<> (v. the iterator_facade documentation). template - ahm_iterator(const ahm_iterator& o, - typename std::enable_if< - std::is_convertible::value >::type* = 0) - : ahm_(o.ahm_) - , subMap_(o.subMap_) - , subIt_(o.subIt_) - {} + ahm_iterator( + const ahm_iterator& o, + typename std::enable_if< + std::is_convertible::value>::type* = nullptr) + : ahm_(o.ahm_), subMap_(o.subMap_), subIt_(o.subIt_) {} /* * Returns the unique index that can be used for access directly