What\'s the best technique for exiting from a constructor on an error condition in C++? In particular, this is an error opening a file.
Thanks for the responses. I\'
If you object after the error can not perform its actions - you have to throw. If it can - log you error and change the construction logic.