[libcxx-commits] [PATCH] D71096: __bit_reference: fix -Wdeprecated-copy warnings

Fangrui Song via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Thu Dec 12 10:05:33 PST 2019


MaskRay marked 2 inline comments as done.
MaskRay added inline comments.


================
Comment at: libcxx/include/__bit_reference:50
 public:
+    _LIBCPP_INLINE_VISIBILITY
+    __bit_reference(const __bit_reference& __x) _NOEXCEPT : __seg_(__x.__seg_),
----------------
I guess this file needs to be C++03 compatible, so I don't use `= default`.


================
Comment at: libcxx/include/__bit_reference:150
-
-    __bit_const_reference& operator=(const __bit_const_reference& __x);
 };
----------------
It seems this isn't defined, so I just delete it.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D71096





More information about the libcxx-commits mailing list