[libcxx-commits] [PATCH] D115291: [libc++] `= delete` member functions with // = delete;

Joe Loser via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Tue Dec 7 15:37:23 PST 2021


jloser added inline comments.


================
Comment at: libcxx/include/__locale:211
     _LIBCPP_INLINE_VISIBILITY _LIBCPP_CONSTEXPR id() :__id_(0) {}
+    void operator=(const id&) = delete;
+    id(const id&) = delete;
----------------
Interesting to see a copy assignment operator with //return type of void//. Is that actually intended? I suspect this meant to be `id& operator=(const id&) = delete;` surely, right?

Ditto with `seed_seq` below in another file.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D115291



More information about the libcxx-commits mailing list