Add option name to a few exception classes.

Fixes #3423. Patch from Sascha Ochsenknecht.


[SVN r57746]
This commit is contained in:
Vladimir Prus
2009-11-18 13:35:14 +00:00
parent e1010ad09e
commit aaa914e9a4
6 changed files with 194 additions and 6 deletions

View File

@@ -80,6 +80,16 @@ namespace boost { namespace program_options {
e.set_option_name(name);
throw;
}
catch(multiple_occurrences& e)
{
e.set_option_name(name);
throw;
}
catch(multiple_values& e)
{
e.set_option_name(name);
throw;
}
#endif
v.m_value_semantic = d.semantic();