No, I wouldn't do that. RAII objects are kept on the stack, and that's a bad place for polymorphism. If the F and P variants have any common code, make the base's destructor protected and non-virtual.
No, I wouldn't do that. RAII objects are kept on the stack, and that's a bad place for polymorphism. If the F and P variants have any common code, make the base's destructor protected and non-virtual.
All the buzzt!
CornedBee
"There is not now, nor has there ever been, nor will there ever be, any programming language in which it is the least bit difficult to write bad code."
- Flon's Law