quote:And you can''t fix it.
*sigh* You are correct. Thanks for explaining why!
quote:Original post by null_pointerHuh? My original post did have "Unless RAII is used well" at the end of it, to imply that constructors can't leak if RAII is used well. And if constructor can't leak, it *could* throw. You see, the "throwing isn't a good thing" (that some AP used) is a suggestive phrase, and I gave reasons to it in my previous post. If I had said "constructors mustn't throw", I could've understood you better.
That is not the argument given by the person who said that one should not throw exceptions from constructors.
quote:Huh? My original post did have "Unless RAII is used well" at the end of it, to imply that constructors can''t leak if RAII is used well. And if constructor can''t leak, it *could* throw. You see, the "throwing isn''t a good thing" (that some AP used) is a suggestive phrase, and I gave reasons to it in my previous post. If I had said "constructors mustn''t throw", I could''ve understood you better.