You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the SmallVector class, copy-constructor and assignment operator are templated. However, it doesn't suppress the compiler from generating default copy constructor/assignment implicitly. And that's what's happening on GCC e.g:
And what code using the generated code is broken now?
In addition, assignment operators are different from copy constructors; you cannot blindly overwrite existing data in the former.
Also, you have to check for self-assignment, although the current implementation doesn't do that either.
I suspect the SmallVector class is not designed to be used in the way you describe.
adf88 opened the ticket and wrote:
Reported version: trunk
Operating system: All
This issue was imported from FlySpray: https://bugs.openttd.org/task/5255
The text was updated successfully, but these errors were encountered: