Catching exceptions thrown from constructor of a global instance of a class

sajaskk43 (1)
I know that having global variables is not appreciated. But in the book, The C++ programming language, by Bjarne Stroustrup, Author says that " The only way to gain control in case of throw from an initializer of a non local static object is set_unexpected() ". How is it done?
Registered users can post here. Sign in or register to post.