quote:Original post by Void
I disagree.
If the base ctor is completed and the dervied child ctor throws, the base dtor will be called. Only the dtor for the derived class will not be called.
Argh, I mixed up the problem with the solution.
This is the gotw.
The problem is when you don''t use RAII, and ''new'' multiple things in the derived ctor body - then there''s a potential resource leak. The missing syntax in MSVC is the ctor exception translator.
My apologizes, I''ll make a point of double checking my facts before I spout off non-sense again.