Re: [opensource-dev] Virtual Destructors

2011-07-01 Thread Ricky
Thanks Josh! That's good to know, and thanks for the link. While I've gotten used to a fair number of languages, C++ has a LOT of territory filled with dark corners and pits. So I try to proceed cautiously. :D Ricky Cron Stardust On Fri, Jul 1, 2011 at 4:08 PM, Joshua Bell wrote: > Destructors

Re: [opensource-dev] Virtual Destructors

2011-07-01 Thread Joshua Bell
Destructors of derived classes are automatically virtual if the base class destructor is virtual. http://www.parashift.com/c++-faq-lite/virtual-functions.html#faq-20.7 The inheritance chain is: LLMouseHandler > LLTool > LLManip > LLManipScale ... and both LLMouseHandler and LLTool declare the d

Re: [opensource-dev] Virtual Destructors

2011-07-01 Thread Ricky
Looks like the destructors might only be called at program termination, so this may not be a big problem anyway. However it IS inconsistent and weird. And I have it within reach to clean up if it seems good to do so. Ricky Cron Stardust On Fri, Jul 1, 2011 at 3:25 PM, Ricky wrote: > Poking aro

[opensource-dev] Virtual Destructors

2011-07-01 Thread Ricky
Poking around in the llmanip* files working on VWR-25739, I started to get annoyed at the coding inconsistencies between those files. So I started looking at what it would take to make the 3 subclasses (translate, scale, and rotate) consistent, when I tripped across the detail that llmaniptranslat