__bit_reference: fix -Wdeprecated-copy warnings
authorFangrui Song <maskray@google.com>
Thu, 5 Dec 2019 23:54:08 +0000 (15:54 -0800)
committerFangrui Song <maskray@google.com>
Fri, 13 Dec 2019 00:31:36 +0000 (16:31 -0800)
commitb7eb30d48131c0b42cf5fa5bf866e846959876c2
treedbc9f13551051d10fbfce2cd8c6caa459e70795a
parentdabd2622a86900718ce5ba22e787333265375d4a
__bit_reference: fix -Wdeprecated-copy warnings

Since C++11, [depr.impldec]:

The implicit definition of a copy constructor as defaulted is deprecated
if the class has a user-declared copy assignment operator or a
user-declared destructor.

At clang HEAD, -Wdeprecated-copy (included by -Wextra) will warn on such instances.

Reviewed By: EricWF

Differential Revision: https://reviews.llvm.org/D71096
libcxx/include/__bit_reference