16 Feb
2010
16 Feb
'10
6 p.m.
On Tue, Feb 16, 2010 at 1:54 AM, Adam Badura
Is this situation a bug? If that's the case I'd do something like:
No. Its not.
Like that?
Yes. This would do. Will anything like this make it into Boost or you don't think it is useful enough?
It's a possibility, but I'm not sure I understand the use case well enough. In the use case you're describing, I would simply make getPath throw if it can't produce a valid string for whatever reason. I do use optional error info in exceptions but not like this. Example would be boost::errinfo_file_name, which may not be present in all read_error exceptions because some read errors do not involve files. Emil Dotchevski Reverge Studios, Inc. http://www.revergestudios.com/reblog/index.php?n=ReCode