[all-commits] [llvm/llvm-project] b7eb30: __bit_reference: fix -Wdeprecated-copy warnings

Fangrui Song via All-commits all-commits at lists.llvm.org
Thu Dec 12 16:31:41 PST 2019


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: b7eb30d48131c0b42cf5fa5bf866e846959876c2
      https://github.com/llvm/llvm-project/commit/b7eb30d48131c0b42cf5fa5bf866e846959876c2
  Author: Fangrui Song <maskray at google.com>
  Date:   2019-12-12 (Thu, 12 Dec 2019)

  Changed paths:
    M libcxx/include/__bit_reference

  Log Message:
  -----------
  __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




More information about the All-commits mailing list