[libcxx-commits] [PATCH] D128214: [libc++] Makes `unique_ptr operator*() noexcept.

Louis Dionne via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Wed Nov 8 13:38:18 PST 2023


ldionne added inline comments.


================
Comment at: libcxx/include/__memory/unique_ptr.h:55
+#ifndef _LIBCPP_CXX03_LANG
+// Dereferencing _Ptr directly in noexcept fails for a void pointer.
+// This is not SFINAE-ed away leading to a hard error.
----------------
This comment seems a bit unnecessary to me once we add tests for `void`. Then it's pretty self explanatory, if you try to remove this the test would fail.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D128214



More information about the libcxx-commits mailing list