Vladimir Prus
fae2d4c57b
Merge from develop for 1.59
...
- Fix compilation errors, missing dllexport and warnings on
Windows and/or MSVC (Daniela Engert, Marcel Raad)
- Fix unintialized fields (Zoey Greer)
- Stop options with implicit value from consuming separate tokens (Michael John Decker)
- Make multitoken limit be max int, not 32K (Hans Hohenfeld)
- Code formatting and documentation fixes (Jurko, Lauri Nurmi)
- Minimal support for no-rtti build (Minmin Gong)
- Don't increment environment pointer past the end (Vladimir Prus)
2015-06-09 09:54:19 +03:00
Vladimir Prus
c0cee7f6da
Go back to std::type_info in one more place.
2015-05-03 21:55:08 +03:00
Vladimir Prus
0756d35f8b
Remove more unnecessary use of boost::type_index.
2015-05-01 19:15:36 +03:00
Vladimir Prus
bd1d0bd861
Put back std::type_info.
...
Since typed_value_base is only used with RTTI on, there's
no need to avoid std::type_info there.
2015-04-30 22:15:31 +03:00
Minmin Gong
6feeeb3b92
Using type_index to avoid RTTIs in program_options. ( fixes #10347 )
2015-04-30 22:10:44 +03:00
Marcel Raad
0efb385e99
Protect against max macro
...
This fixes compilation for MSVC in the case when NOMINMAX is not defined and the program_options include appears after the windows.h include.
2015-04-13 12:27:53 +03:00
Zoey Greer
2c4d25a04b
Value-initialize m_desc
...
Value-initialize m_desc (to NULL) in this constructor to avoid uninitialized memory situations. This issue is related to Coverity CID12523 and was uncovered by Coverity.
2015-04-13 12:26:37 +03:00
Zoey Greer
bae408095f
Explicitly initialize m_implicit
...
m_implicit was previously uninitialized in this constructor, leading to possibly inconsistent functionality. Instead, we now initialize it to false. This issue is related to Coverity CID10559 and was uncovered by Coverity.
2015-04-13 12:24:31 +03:00
Michael John Decker
88dea3c6fd
Stop options with implicit value from consuming separate tokens.
...
The current documentation states that if an option has implicit
value, it will only consume adjacent token.
2014-12-30 10:15:10 +03:00
Jurko
a9ea9bb453
escape first dash ('-') in double-dashes ('--') found in doxygen comments
...
This should prevent doxygen from generating bad documentation HTML pages
containing '<ndash></ndash>' where those double-dashes should be.
2014-11-27 10:21:48 +01:00
Jurko
3cec23f2ba
fix documentation typos & style
...
typo corrections:
- otherwisee --> otherwise
- it's is --> it is
- nuber --> number
- will likely to use --> is likely to use
- varaible --> variable
- defauled --> defaulted
stylistic changes:
- which would make --> making
2014-11-27 10:21:48 +01:00
Jurko
fcc4e6ef1a
trim trailing spaces
2014-11-27 09:45:10 +01:00
Marcel Raad
1a17f20532
Compile fix for MSVC 14
...
Also fixes some new variable shadowing warnings
in cmdline_test with Visual C++ 14.
2014-11-24 17:16:21 +03:00
Hans Hohenfeld
6e846597d5
Use maximum unsigned as default multitoken limit.
...
Fixes #10718 .
2014-11-24 17:09:58 +03:00
Vladimir Prus
f50b02750a
Don't increment environment pointer past the end.
...
This should not effect correct programs, since once the
iterator itself is past-the-end, it should not matter what
the underlying state of that iterator is. But, the new behaviour
is more obvious.
2014-01-20 09:28:12 +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
Daniela Engert
2acfab15a3
Fix config_file compilation errors with MSVC
...
Previous fix 4ae33c for ticket #6797 introduced a new problem with
Visual Studio compilers about two missing methods in
'common_config_file_iterator'. Adding those seemingly not required
methods as empty methods fixes the issue. As an added bonus, the
bogus warnings about DLL-interfaces get a silencing treatment, too.
Tests were run with vc10, vc11, and vc12. Without this fix, the
affected test cases fail on all 3 compilers. With the fix in place,
all tests pass.
Signed-off-by: Daniela Engert <dani@ngrt.de >
2014-01-09 01:19:15 +04:00
Vladimir Prus
4ae33ce15e
Add dllexport to common_config_file_iterator.
...
As reported in #6797 , there are linker errors otherwise. I
do not know why regression tests, which test dll linking
explicitly, do not catch this.
2013-12-19 08:16:19 +04:00
Vladimir Prus
9d7c987526
Remove tabs.
2013-12-04 09:17:17 +04:00
Vladimir Prus
6bf4607eac
Align columns across groups in --help output.
...
Patch from Leo Goodstadt.
Fixes #6114 .
[SVN r86571]
2013-11-06 09:23:14 +00:00
Michel Morin
81844db902
Correct broken links to C++ standard papers. Refs #9212 .
...
[SVN r86524]
2013-10-30 12:51:24 +00:00
Stephen Kelly
d3f32ca813
ProgramOptions: Remove obsolete GCC version check.
...
[SVN r86115]
2013-10-01 08:47:31 +00:00
Stephen Kelly
da03a78b66
Remove obsolete MSVC check from pragma guard
...
git grep -h -B1 "^#\s*pragma once" | grep -v pragma | sort | uniq
is now clean.
[SVN r85952]
2013-09-26 13:02:51 +00:00
Vladimir Prus
5059a8f393
Silence gcc warning. Thanks to Chris Stylianou.
...
Closes #8725 .
[SVN r84903]
2013-06-24 19:37:37 +00:00
Vladimir Prus
b430a83dfb
Fix report of error for options with dashes.
...
Fixes #8009 .
Patch from Markus Roth.
[SVN r82805]
2013-02-10 12:07:05 +00:00
Vladimir Prus
f11104084b
Really fixes #7049 .
...
[SVN r79477]
2012-07-13 19:06:30 +00:00
Vladimir Prus
3360ad0ea2
Fix compilation error.
...
Fixes #7049 . Patch from Deniz Bahadir.
[SVN r79164]
2012-06-29 09:04:09 +00:00
Vladimir Prus
5a470bcc41
Adjust spelling.
...
[SVN r78359]
2012-05-06 17:32:47 +00:00
Vladimir Prus
2eda0313c7
Include necessary header, don't rely on two-phase lookup not being there.
...
Fixes #6790 .
[SVN r78331]
2012-05-05 07:17:28 +00:00
Vladimir Prus
5cbfa80841
Allow to specify how option's value is named in help message.
...
Fixes #4781 .
[SVN r77931]
2012-04-12 08:37:34 +00: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
Vladimir Prus
76a62c1809
Fix warning push/pop mismatch.
...
Fixes #5869 .
[SVN r75064]
2011-10-19 16:20:56 +00:00
Jürgen Hunold
540e300c38
Enable visibility support. Refs #2114 .
...
[SVN r73299]
2011-07-22 12:08:03 +00:00
Vladimir Prus
7051655c76
Clarify docs for 'zero_token'.
...
Fixes #1132 .
[SVN r67774]
2011-01-08 11:45:50 +00:00
Vladimir Prus
38e7ea8516
Implement variables_map::clear to clear extra members.
...
Fixes #4927
[SVN r67772]
2011-01-08 10:39:21 +00:00
Marshall Clow
e3f331a23b
Take argv as const; refs #3909
...
[SVN r66959]
2010-12-01 18:54:41 +00:00
Jürgen Hunold
7d7dad09d3
Suppress msvc warning 4251 about templates as base classes not having a dll-interface.
...
Suppress msvc warning 4275 about base class std::logic_error not having a dll-interface.
[SVN r65318]
2010-09-06 08:43:06 +00:00
Vladimir Prus
572a93ac5b
Fix -Wshadow warnings. Closes #4015 .
...
Patch from Tatu Kilappa.
[SVN r62236]
2010-05-26 10:40:34 +00:00
Vladimir Prus
e79708eee7
Fix types. Closes #4069 .
...
[SVN r62235]
2010-05-26 09:51:10 +00:00
Sascha Ochsenknecht
388c0d1e35
reactive case_insensitive style for cmdline
...
[SVN r58274]
2009-12-10 20:29:49 +00:00
Sascha Ochsenknecht
a5e45eda5f
reactive case_insensitive style for cmdline
...
[SVN r58273]
2009-12-10 20:25:53 +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
645adb48cb
Allow passing file name to parse_config_file(), Fixes #3264
...
[SVN r58248]
2009-12-09 13:45:01 +00:00
Sascha Ochsenknecht
9a04daa2b2
Better detection of missing values on command line, Fixes #3423
...
[SVN r58184]
2009-12-06 09:52:53 +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
Sascha Ochsenknecht
35bf26f432
Changed defaults for split_unix() function to be more compliant to unix command line style
...
[SVN r58134]
2009-12-04 10:15:11 +00:00
Sascha Ochsenknecht
00dadb4203
enhance split_unix() to allow unix style splitting of command line string
...
[SVN r58133]
2009-12-04 08:09:43 +00:00
Sascha Ochsenknecht
263534a213
rename description_length to min_description_length for better semantic
...
[SVN r58112]
2009-12-03 11:11:34 +00:00
Sascha Ochsenknecht
60966caa35
Additional parameter to allow user to specify width of column for description text, patch from Chard, Fixes #3703
...
[SVN r58095]
2009-12-02 13:35:54 +00:00