electronicarts / EASTL

EASTL stands for Electronic Arts Standard Template Library. It is an extensive and robust implementation that has an emphasis on high performance.
BSD 3-Clause "New" or "Revised" License
7.82k stars 905 forks source link

bitvector: remove explicit copy constructor and copy assignment #490

Closed AntonYudintsev closed 1 year ago

AntonYudintsev commented 1 year ago

not only it is same as default implementation, but also disallows move assignment (violates rule-of-5)

since, there is no sense in declaring copy/assignment, we just remove it (use rule of zero) https://en.cppreference.com/w/cpp/language/rule_of_three

grojo-ea commented 1 year ago

Good find, and thanks for the PR!