[libcxx-commits] [PATCH] D43159: [libc++] Replace several uses of 0 by nullptr

Marek Kurdej via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Thu Nov 26 06:19:02 PST 2020


curdeius added inline comments.


================
Comment at: libcxx/include/memory:4371
     bool expired() const _NOEXCEPT
-        {return __cntrl_ == 0 || __cntrl_->use_count() == 0;}
+        {return __cntrl_ == nullptr || __cntrl_->use_count() == nullptr;}
     shared_ptr<_Tp> lock() const _NOEXCEPT;
----------------
Unneeded chang for `use_count()`. It's a `long`.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D43159/new/

https://reviews.llvm.org/D43159



More information about the libcxx-commits mailing list