[libcxx-commits] [PATCH] D71395: [libc++] Fix -Wdeprecated-copy warnings in __bit_reference
Eric Christopher via Phabricator via libcxx-commits
libcxx-commits at lists.llvm.org
Wed Dec 11 23:39:15 PST 2019
echristo created this revision.
echristo added reviewers: EricWF, dblaikie.
Herald added subscribers: libcxx-commits, ldionne, christof, mcrosier.
Herald added a project: libc++.
Add a couple of default copy constructors to fix the warning.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D71395
Files:
libcxx/include/__bit_reference
Index: libcxx/include/__bit_reference
===================================================================
--- libcxx/include/__bit_reference
+++ libcxx/include/__bit_reference
@@ -62,6 +62,8 @@
return *this;
}
+ __bit_reference(const __bit_reference &) = default;
+
_LIBCPP_INLINE_VISIBILITY
__bit_reference& operator=(const __bit_reference& __x) _NOEXCEPT
{return operator=(static_cast<bool>(__x));}
@@ -148,6 +150,7 @@
: __seg_(__s), __mask_(__m) {}
__bit_const_reference& operator=(const __bit_const_reference& __x);
+ __bit_const_reference(const __bit_const_reference &) = default;
};
// find
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D71395.233514.patch
Type: text/x-patch
Size: 658 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20191212/a8b304c0/attachment.bin>
More information about the libcxx-commits
mailing list