summaryrefslogtreecommitdiffstats
path: root/libcxx
diff options
context:
space:
mode:
authorEric Christopher <echristo@gmail.com>2019-12-11 23:49:07 -0800
committerEric Christopher <echristo@gmail.com>2019-12-11 23:50:28 -0800
commit02bb20223bda5add729402962c70d0ebd0d98af2 (patch)
treea21997d094fbc6b235e07267a52093831de518e7 /libcxx
parente0b966643fc2030442ffbae9b677247be697673b (diff)
downloadbcm5719-llvm-02bb20223bda5add729402962c70d0ebd0d98af2.tar.gz
bcm5719-llvm-02bb20223bda5add729402962c70d0ebd0d98af2.zip
[libc++] Fix -Wdeprecated-copy warnings in __bit_reference
Add a couple of default copy constructors to fix the warning. Reviewed By: dblaikie Differential Revision: https://reviews.llvm.org/D71395
Diffstat (limited to 'libcxx')
-rw-r--r--libcxx/include/__bit_reference3
1 files changed, 3 insertions, 0 deletions
diff --git a/libcxx/include/__bit_reference b/libcxx/include/__bit_reference
index 05dfbe7e9ff..f035eeae7af 100644
--- a/libcxx/include/__bit_reference
+++ b/libcxx/include/__bit_reference
@@ -62,6 +62,8 @@ public:
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 @@ private:
: __seg_(__s), __mask_(__m) {}
__bit_const_reference& operator=(const __bit_const_reference& __x);
+ __bit_const_reference(const __bit_const_reference&) = default;
};
// find
OpenPOWER on IntegriCloud