16 Jun
2011
16 Jun
'11
2:02 a.m.
On Jun 14, 2:45 pm, Michael Schuerig
void foo(const string& file_name) { try { do_something_fallible(file_name); } catch( boost::exception & e ) { e << boost::errinfo_file_name(file_name); throw; }
}
I'd rather write it like this:
void foo(const string& file_name) { diagnostic
(file_name); do_something_fallible(file_name); }
sorry if I don't get the question right. can't you just do this?
} catch( boost::exception & e ) { throw (e << boost::errinfo_file_name(file_name) ); }