[libc-commits] [PATCH] D150118: [libc] Prevent changing ownership of the port once opened

Joseph Huber via Phabricator via libc-commits libc-commits at lists.llvm.org
Wed May 10 14:03:22 PDT 2023


jhuber6 added inline comments.


================
Comment at: libc/src/__support/RPC/rpc.h:245
   LIBC_INLINE Port &operator=(const Port &) = delete;
   LIBC_INLINE Port(Port &&) = default;
   LIBC_INLINE Port &operator=(Port &&) = default;
----------------
JonChesterfield wrote:
> Guessing we can't have delete here while using an optional that requires move?
Yep, so next best thing is making it private.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D150118



More information about the libc-commits mailing list