Skip to content

util: update definition of DISALLOW_COPY_AND_ASSIGN macro

This PR updates the DISALLOW_COPY_AND_ASSIGN macro. The compiler will not define move constructor or move assignment operators when copy constructor/assignment is defined. Hence, it's not needed to delete move operations. This also makes the definition coherent with chromium's definition of the same. https://cs.chromium.org/chromium/src/base/macros.h?rcl=b209442fa2c29021b06a6dcbbd0486b440011fe2&l=33.

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • commit message follows commit guidelines

Merge request reports

Loading