Andrey Semashev
1d7cceff6c
Fix C++20 incompatibility from using exception specifications.
...
C++20 removed support for `throw()` exception specifications, so at
least clang-19 is now emitting errors on them. Replaced exception
specifications with BOOST_NOEXCEPT_OR_NOTHROW, which converts `throw()`
to `noexcept`, but keeps the code formally compatible with C++03.
2024-04-07 19:43:41 +03:00
Peter Dimov
f941ba88a7
Avoid macro redefinition warnings
2023-10-21 18:41:37 +03:00
Vladimir Prus
37804b54d4
Remove unnecessary workaround.
...
Closes #9854 .
2014-04-09 14:04:48 +04:00
Daniela Engert
3ce1c74a0f
Suppress msvc level-4 warnings.
...
Even when compiled at warning level 4 (i.e. all), project
policies may require compilations without warnings issued.
Signed-off-by: Daniela Engert <dani@ngrt.de >
2014-01-09 08:47:21 +04:00
Vladimir Prus
fd7b310993
Improve error reporting.
...
The name of option is now shown in most cases when it's feasible, and
clarify of the error messages has been improved throughout.
Patch from Leo Goodstadt.
[SVN r77827]
2012-04-08 08:42:39 +00:00
Sascha Ochsenknecht
970e377710
Enhancement to flag options as required, Fixes #2982
...
[SVN r58263]
2009-12-10 08:46:44 +00:00
Sascha Ochsenknecht
5f01f7bf3f
better detection of ambiguous options, see Ticket #3423
...
[SVN r58152]
2009-12-05 08:08:45 +00:00
Sascha Ochsenknecht
6e0f1db1fc
Clean up exception classes, changes regarding to Ticket #3423
...
[SVN r58138]
2009-12-04 13:38:56 +00:00
Vladimir Prus
aaa914e9a4
Add option name to a few exception classes.
...
Fixes #3423 . Patch from Sascha Ochsenknecht.
[SVN r57746]
2009-11-18 13:35:14 +00:00
Vladimir Prus
73957ca639
Don't strip quotes from values.
...
Fixes #850 .
Patch from Sascha Ochsenknecht.
[SVN r57519]
2009-11-09 18:12:10 +00:00
Vladimir Prus
9c934c39fe
Use extra parens to silence warnings re &&/|| on same level.
...
[SVN r57351]
2009-11-04 10:39:55 +00:00
Daniel James
ee3079c247
Revert a change I accidentally checked in.
...
[SVN r50219]
2008-12-09 10:54:48 +00:00
Daniel James
68fa36b0f6
Avoid a couple of gcc warnings.
...
[SVN r50214]
2008-12-08 23:35:33 +00:00
Vladimir Prus
90dc6b94d0
Clarify comment
...
[SVN r38190]
2007-07-11 19:37:51 +00:00
Vladimir Prus
3765e8e8e9
Fix accesses to first element of an empty string.
...
Thanks to Olaf van der Spek for the report.
[SVN r33778]
2006-04-24 08:25:12 +00:00
Vladimir Prus
5af27a78e7
Use boost::throw_exception instead just throw_exception. Otherwise, borland
...
"forgets" to generate code for the function call.
[SVN r29614]
2005-06-16 10:29:49 +00:00
Vladimir Prus
c984d59de1
Refactor the command line parser so that it uses options_description,
...
as opposed to having his own data structures. Clean up option description
classes a bit, removing unneeded methods. Remove support for 'implicit'
options.
[SVN r28413]
2005-04-22 13:35:45 +00:00
Vladimir Prus
58d35a27b9
Change "throw" to "throw_exception".
...
[SVN r27398]
2005-02-16 09:03:19 +00:00
Vladimir Prus
87b4fff3e2
Fix missing includes.
...
Patch from Graham Bennett.
[SVN r26677]
2005-01-12 10:50:32 +00:00
Vladimir Prus
97b337c1ce
MinGW-no-wstring workaround
...
[SVN r25292]
2004-09-21 06:20:02 +00:00
Vladimir Prus
074c154d18
Fix a recently introduces failure of unicode_test. I was trying
...
to form an argument to logic_error using wstring, which did not work. Now
try to convert wstring into local 8-bit encoding, and use a dummy text
when that fails.
[SVN r25242]
2004-09-20 06:14:18 +00:00
Vladimir Prus
ca1531d210
Improve the error reporting for invalid option values. Now the
...
'validation_error' exception allows to set the name of the option, and the
what() method uses the name to generate better message.
[SVN r25141]
2004-09-16 07:10:27 +00:00
Vladimir Prus
44d5ba98c1
Improve 'bool_switch' -- don't accept any argument on the command line.
...
Allow to set 'zero_tokens' flag for the typed_value type.
[SVN r25105]
2004-09-15 09:49:00 +00:00
Vladimir Prus
b4192e34b9
Another set of doc/comment edits from Charles.
...
[SVN r24657]
2004-08-23 10:18:09 +00:00
Vladimir Prus
6f49b5b999
Patch from John Maddock for platforms without wchar_t support, specifically
...
cygwin.
[SVN r23576]
2004-07-15 11:40:26 +00:00
Vladimir Prus
f084eeac4b
Applied numerious suggestions from Pavel Vozenilek.
...
[SVN r23496]
2004-07-13 15:12:26 +00:00
Vladimir Prus
ee778af57c
More declspecs
...
[SVN r23315]
2004-07-02 08:38:52 +00:00
Vladimir Prus
7a614e26ef
More declspecs.
...
[SVN r23280]
2004-06-30 07:16:09 +00:00
Vladimir Prus
75a6e42360
Patch from Janusz Piwowarski, to make the library work on mingw, despite
...
the fact the mingw does not have std::wstring. The patch disables wchar_t
support, but it allows the rest of the library to work ok.
[SVN r23111]
2004-06-17 12:34:59 +00:00
Vladimir Prus
990ae86a20
Convert the 'validator' class into 'validate' function. Add a fake parameter
...
to specify type to convert to, and long/int parameter to fake partial template
ordering. Hopefully, this will work on some broken compilers.
[SVN r23052]
2004-06-08 07:06:44 +00:00
Vladimir Prus
d6bea29bce
Rename value_semantic_codecvt_helper::parse to xparse, to avoid warnings
...
about overloading vs. overriding. The warning is wrong, but both gcc and
Comeau emit it.
[SVN r23050]
2004-06-08 05:07:56 +00:00
Vladimir Prus
196f6c0b5b
Import revision 295 of the program_options library.
...
[SVN r22823]
2004-05-14 13:40:31 +00:00