4 ms·
Yep, I had to resort to that a few times. With a bit of syntactic sugar that could be turned into something like: auto value = try Foo("will fail") ca
by grumbel 3y ago
Yep, I had to resort to that a few times. With a bit of syntactic sugar that could be turned into something like:
auto value = try Foo("will fail")
catch(...) {
return Foo("will work"); // or throw something else
};