I know that it\'s not safe to throw exceptions from destructors, but is it ever unsafe to throw exceptions from constructors?
e.g. what happens for objects that ar
If you take a resource in a constructor, such as a socket etc, then this would be leaked if you threw an exception would it not?
But I guess this is the argument for doing no work in a constructor, lazy initializing your connections as you need them.