I have seen the peculiar syntax in an SO question a while ago.
class B{
A a;
public:
B() try : a() {} catch(string& s) { cout << &s << " " << s << endl; };
};
What is the meaning of this try-catch-block outside the function?
I have seen the peculiar syntax in an SO question a while ago.
class B{
A a;
public:
B() try : a() {} catch(string& s) { cout << &s << " " << s << endl; };
};
What is the meaning of this try-catch-block outside the function?