docs: update examples to follow styleguide
Remove usage of DISALLOW_COPY_AND_ASSIGN from documentation. styleguide/c++/c++-dos-and-donts.md: 'DISALLOW_COPY_AND_ASSIGN` is deprecated. For a non-copyable/movable type, delete the copy operations (the move operations will be implicitly deleted); otherwise, declare either copy operations, move operations, or both (a non-declared pair will be implicitly deleted). Always declare or delete both construction and assignment, not just one (which can introduce subtle bugs). Change-Id: I2d2e0ecf95c3ef764dc90d49c674625c15432d87 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2404905Reviewed-by:Tal Pressman <talp@chromium.org> Reviewed-by:
Finnur Thorarinsson <finnur@chromium.org> Commit-Queue: Johann Koenig <johannkoenig@google.com> Cr-Commit-Position: refs/heads/master@{#806782}
Showing
Please register or sign in to comment