Repository navigation
"Wrapped" has virtual functions so it should have a virtual destructor. - #998
Conversation
Faless
left a comment
There was a problem hiding this comment.
See style comment, looking good otherwise 👍 🏆
|
@Faless I generally don't put implementations in library headers, but I guess this project doesn't make that distinction. Why not |
More or less, it's not used anywhere beside few very rare exceptions, and even then, always in the header file. |
|
OK. I think it's better style because it directly communicates intent, but 🤷 😄 |
I honestly don't mind too much as long as it's in the header file so I don't have to open the cpp file just to find out it's the default one. As per |
We predominantly use If there is a significant advantage to moving to |
Deleting an object through a pointer to a base class is undefined behaviour unless the destructor in the base class is virtual.
f90f6a8 to
5dd2928
Compare
|
Thanks! |
Deleting an object through a pointer to a base class is undefined behaviour unless the destructor in the base class is virtual.