Peter Dimov
43cc2af3b1
Merge branch 'master' into develop
2021-02-02 19:19:09 +02:00
Mateusz Łoskot
a2379420f6
Avoid deprecated bind placeholders in global namespace
...
This fixes numerous compilation warnings:
note: #pragma message:
The practice of declaring the Bind placeholders (_1, _2, ...)
in the global namespace is deprecated.
Please use <boost/bind/bind.hpp> + using namespace boost::placeholders,
or define BOOST_BIND_GLOBAL_PLACEHOLDERS to retain the current behavior.
2020-04-01 14:13:13 +03:00
Vladimir Prus
bc0c90a70f
Merge branch 'develop'
2018-07-06 17:35:40 +03:00
Vladimir Prus
d95d316848
fix msvc 10 error.
2018-07-06 17:35:12 +03:00
Emre Turkay
0410ddcbd2
Pull back cpp file change of default template value definition for parse_config_file.
2018-07-06 10:38:43 +03:00
Emre Turkay
64c3ae0fde
Specified a default value for the template argument of parse_config_file.
2018-07-06 10:38:43 +03:00
Vladimir Prus
46ad442da1
Merge branch 'develop'
2018-06-27 22:32:29 +03:00
Eyal Rozenberg
589d55837e
Fixes #1 : Support for multiple long names per option
...
An unintrusive implementation - no existing interfaces changed, and a single addition for obtaining all of the different long names.
Notes:
* Tests added for the new functionality, and existing tests expanded to take it into account.
* It is now impossible to specify long names with commas in them (but then, that wasn't properly supported before either, more of an oversight).
* The multiple long options are not included in the usage information - just the first one of them is printed
2018-06-27 22:25:43 +03:00
Vladimir Prus
46caf622db
Merge branch 'develop'
2018-03-15 22:21:23 +03:00
Vladimir Prus
046501c191
Fix member hiding warnings.
...
Fixes #35 .
2017-10-25 16:24:36 +03:00
Johannes Spangenberg
fcee593529
fix suppressing I/O error in parse_config_file
...
corresponding issue: https://svn.boost.org/trac10/ticket/13125
2017-07-24 22:22:31 +03:00
Vladimir Prus
b35e654335
Update comments.
2017-06-10 22:44:09 +03:00
Vladimir Prus
7729850bb7
Make options with implicit value use next token.
...
This commit reverts:
- 88dea3c6fd .
"Stop options with implicit value from consuming separate tokens."
- 0c01e9aadc .
"Add testing for implicit_values and non-consuming of separate tokens."
These commits from 2014 made options with implicit_value set only
consult value in the same token. The problem is that now implicit_value,
a sematic properly, forces a particular syntax, which proved to be
confusing.
2017-06-10 22:44:09 +03:00
Isaac Dupree
1c2472b8d7
fix syntax with BOOST_NO_EXCEPTIONS
2016-12-21 11:05:00 +03:00
Vladimir Prus
8ca8b3957a
Fix code duplication.
2015-09-12 21:51:31 +03:00
Lauri Nurmi
c724b800a8
Fix spelling of "occurrence" where appropriate.
2015-03-29 19:13:14 +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
794de34bf9
trim trailing spaces
2014-12-02 01:40:17 +01: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
6bf4607eac
Align columns across groups in --help output.
...
Patch from Leo Goodstadt.
Fixes #6114 .
[SVN r86571]
2013-11-06 09:23:14 +00:00
Vladimir Prus
a9993a8f01
Fix indent
...
[SVN r79289]
2012-07-05 17:00:50 +00:00
Vladimir Prus
d27da53324
Fix warnings on 64-bit systems.
...
Closes #7077 .
[SVN r79283]
2012-07-05 13:17:24 +00:00
Vladimir Prus
94fc1c677d
Qualify 'distance' with 'std'.
...
Fixes #7086 .
[SVN r79280]
2012-07-05 12:39:16 +00:00
Dave Abrahams
a70de616b0
Summary: Moved libs/detail/utf8_codecvt_facet.cpp to boost/detail/utf8_codecvt_facet.ipp
...
Author: Dave Abrahams <dave@boostpro.com >
[SVN r78081]
2012-04-19 18:19:20 +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
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
Vladimir Prus
28cafd9bd9
Make program_options compile on iOS.
...
Patch from Alejandro Isaza.
Fixes #5053 .
[SVN r67768]
2011-01-08 09:57:31 +00:00
Vladimir Prus
b000bf9a1d
Fix formatting of short-only options.
...
Fixes #4644 .
[SVN r65645]
2010-09-28 09:04:44 +00:00
Vladimir Prus
53ba9ab34f
Robustify disambiguation of full/approximate matches.
...
Fixes #3942 .
[SVN r59744]
2010-02-18 09:43:07 +00:00
Sascha Ochsenknecht
af37add8c6
fix in winmain, Fixes #3879
...
[SVN r59437]
2010-02-03 08:26:35 +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
80b3a04b1f
revert changes for #773
...
[SVN r58237]
2009-12-08 14:57:26 +00:00
Sascha Ochsenknecht
f4e7fb0348
config file parser now stores original_tokens, Fixes #2727
...
[SVN r58233]
2009-12-08 07:45:44 +00:00
Sascha Ochsenknecht
f00e305f40
Modify assert, potentially Fixes #773
...
[SVN r58232]
2009-12-08 06:02:23 +00:00
Sascha Ochsenknecht
d9c57f58d9
consistent handling of namespace std
...
[SVN r58185]
2009-12-06 09:56:54 +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
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
Sascha Ochsenknecht
6b194eed21
additional patch for Ticket #1527
...
[SVN r58054]
2009-11-30 13:38:14 +00:00
Hartmut Kaiser
5fbdd0fafd
ProgramOptions: added a couple of missing std:: namespace qualifiers
...
[SVN r57984]
2009-11-27 22:07:33 +00:00
Sascha Ochsenknecht
3c9e01cad1
consistent use of namespace std
...
[SVN r57972]
2009-11-27 17:49:08 +00:00
Sascha Ochsenknecht
b3e9b5180e
add general split function, Fixes #2561
...
[SVN r57971]
2009-11-27 17:47:51 +00:00
Sascha Ochsenknecht
78693e8799
store empty values from config file, Fixes #1537
...
[SVN r57829]
2009-11-21 07:59:41 +00:00