[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:57:36 PST 2019
This revision was automatically updated to reflect the committed changes.
Closed by commit rG02bb20223bda: [libc++] Fix -Wdeprecated-copy warnings in __bit_reference (authored by echristo).
Changed prior to commit:
https://reviews.llvm.org/D71395?vs=233518&id=233519#toc
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D71395/new/
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.233519.patch
Type: text/x-patch
Size: 656 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20191212/2a36a68f/attachment.bin>
More information about the libcxx-commits
mailing list