Closed LourensVeen closed 1 year ago
Actually, it doesn't have to be that modern a compiler it seems, you just need to use -Wextra
. We don't, but a user might and since this is in a public header, we should fix it.
Fix released with version 0.7.1.
Modern compilers complain about
Data
having a user-defined assignment operator but not a user-defined copy constructor:It's not actually a bug in this case, but the compiler doesn't know that. We should probably just add a user-defined copy-constructor that does what the default one does just to reassure the compiler. We should check whether we need a destructor too, because of the rule-of-three.