Vladimir Prus
81aff160d0
Merge fixes for unregisted options and inaccessible 'style_parser' method
...
from trunk to RC_1_33_0.
[SVN r31615]
2005-11-10 08:46:56 +00:00
Markus Schöpflin
78c3d90280
Fixed previous checkin.
...
[SVN r29621]
2005-06-16 13:23:17 +00:00
Markus Schöpflin
2f17c3b9b9
Added workaround for Tru64/CXX, getline() is not defined in <string> when
...
compiling in strict ansi mode. This is a bug in the string header file.
[SVN r29617]
2005-06-16 12:49:32 +00:00
Vladimir Prus
a78a1f0d76
Unroll 'make parse_command_line' const-correct patch, because it causes too
...
much troubles. Basically, consider;
char* cmdline3_[1] = {};
template<class charT>
void func(const charT* const argv[]) {}
int main()
{
func(cmdline3_);
char** p = cmdline3_;
func(p);
}
EDG compilers can't deduce template argument in the first call. See
http://thread.gmane.org/gmane.comp.lib.boost.devel/125396 for details.
Some other compilers (borland, vc 7.0) see to be have this issue too.
[SVN r29615]
2005-06-16 10:44:23 +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
John Maddock
da4baad235
Added qualifier to cmdline type to fix Borland failures.
...
[SVN r28987]
2005-05-17 11:44:44 +00:00
Rene Rivera
0c1332a0d3
Some compilers don't support, or make it hard to use, source relative includes. So avoid them.
...
[SVN r28920]
2005-05-15 06:32:18 +00:00
Vladimir Prus
6b57600a81
Finally make 'allow_unregistered' method of cmdline work.
...
[SVN r28689]
2005-05-06 07:48:45 +00:00
Vladimir Prus
9a149beb76
Fix 'unknown option' error for two successive calls to 'store'.
...
The bug triggered if
- we store two parsed_option object into variables_map
- the options descriptions associated with those parsed_option objects
are different
- an option present in first parser_option object is not declared in
second options_description.
The problem was that on the second 'store' call we went over all
stored options, trying to get their description from the *second*
options description object.
Thanks to Hartmut Kaiser for the bug report.
[SVN r28685]
2005-05-06 06:40:39 +00:00
Hartmut Kaiser
dc9097c3d0
Make the True64 compiler happy.
...
[SVN r28663]
2005-05-05 16:50:41 +00:00
Vladimir Prus
d4748e8153
Fix a regression -- the if the 'style' argument to parse_command_line
...
function was zero, it was interpreted as no style is suppored. Previously,
it was interpreted as default_styles. Also, remove 'style' argument from
'cmdline' constructors.
[SVN r28500]
2005-04-27 07:02:39 +00:00
Vladimir Prus
efc9712f70
Check for invalid options in vector<option> returned by extra style
...
parser or additional parser.
[SVN r28468]
2005-04-25 09:06:44 +00:00
Vladimir Prus
94d186836e
Derive basic_command_line_parser from cmdline.
...
Eliminate 'common_command_line_parser'.
[SVN r28419]
2005-04-22 15:32:23 +00:00
Vladimir Prus
6565cbc334
Revive 'additional parser'.
...
[SVN r28415]
2005-04-22 14:05:17 +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
07778adab7
Use direct cast from any to reference, recently introduced in CVS.
...
[SVN r28411]
2005-04-22 12:56:15 +00:00
Vladimir Prus
c2442fcad6
Remove a couple of unused option_description members.
...
[SVN r27494]
2005-02-24 12:57:07 +00:00
Vladimir Prus
58d35a27b9
Change "throw" to "throw_exception".
...
[SVN r27398]
2005-02-16 09:03:19 +00:00
Vladimir Prus
69d2f8fb21
Use "const char * const []" for parameters which take command line.
...
[SVN r27397]
2005-02-16 08:09:36 +00:00
Vladimir Prus
cedd6570fd
Patches for IRIX MIPSPro. See
...
https://sourceforge.net/tracker/?func=detail&atid=307586&aid=1115576&group_id=7586
[SVN r27269]
2005-02-09 09:06:45 +00:00
Vladimir Prus
c3e02a2b0a
Merge the utf8 workaround in program_options and serialization and
...
put the result to boost/detail and libs/detail.
[SVN r26758]
2005-01-20 08:49:13 +00:00
Vladimir Prus
87558bfe7c
Added wordwrapping and improved intentation for options_description
...
output.
Patch from Bertolt Mildner.
[SVN r26679]
2005-01-12 12:05:47 +00:00
John Maddock
a122bb502b
Fixed and activated auto-linking code.
...
[SVN r26145]
2004-11-08 12:21:52 +00:00
Vladimir Prus
9bd7193660
Make program_options compile on IBM compiler.
...
Patch from Matthias Troyer.
[SVN r26096]
2004-11-03 07:11:45 +00:00
Vladimir Prus
e7fd9b25ad
Add comments
...
[SVN r26081]
2004-11-02 07:41:35 +00:00
Vladimir Prus
adab37a443
Intel workaround
...
[SVN r25425]
2004-09-27 06:56:36 +00:00
Vladimir Prus
de971fc1e0
Add declspec, in hope to fix a CW9.3 problem
...
[SVN r25399]
2004-09-25 10:02:17 +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
ea1ce5aa1f
More validation_error text improments
...
[SVN r25142]
2004-09-16 07:23:28 +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
72fda8877a
Comment edit
...
[SVN r25107]
2004-09-15 09:57:32 +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
7fa6a814ab
Move include of <detail/workaround.hpp>
...
before the point where BOOST_WORKAROUND is used. Thanks to
Llew Sion Goodstadt.
[SVN r24936]
2004-09-06 12:01:38 +00:00
Vladimir Prus
aed75819ef
Fix a couple of warnings, thanks to Rodolfo Schulz de Lima.
...
[SVN r24931]
2004-09-06 06:13:42 +00:00
Vladimir Prus
ecc78f148c
Clarify doc comment.
...
[SVN r24689]
2004-08-24 05:36:11 +00:00
Vladimir Prus
b4192e34b9
Another set of doc/comment edits from Charles.
...
[SVN r24657]
2004-08-23 10:18:09 +00:00
Douglas Gregor
c789115d52
Converted to Boost Software License, Version 1.0
...
[SVN r24096]
2004-07-27 03:43:34 +00:00
Vladimir Prus
138d959d68
Don't instantiate std::vector with incomplete type, this is not allowed.
...
Thanks to Jonathan Wakely for the report.
[SVN r23942]
2004-07-22 07:39:34 +00:00
Vladimir Prus
2aa09ac7b2
Fix the utf8_codecvt::do_length declaration. Pointed out by Rene Rivera.
...
[SVN r23882]
2004-07-21 07:49:15 +00:00
Vladimir Prus
3e4531b71f
Make the library compile on mingw, again. Thanks to Janusz Piwowarski for the
...
patch.
[SVN r23772]
2004-07-19 08:38:03 +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
9133a2e903
Added 'split_winmain' function.
...
[SVN r23550]
2004-07-14 15:57:02 +00:00
Vladimir Prus
9281df58d2
Include wchar.h so that mbstate_t is available in global namespace. Maybe,
...
I should revert the last patch, which made the file use ::mbstate_t as
opposed to std::mbstate_t, but I'm waiting for Pavel to tell why it was
necessary to use ::mbstate_t and if this version of borland can be made
to work in some other way.
[SVN r23528]
2004-07-14 08:36:58 +00:00
Vladimir Prus
f084eeac4b
Applied numerious suggestions from Pavel Vozenilek.
...
[SVN r23496]
2004-07-13 15:12:26 +00:00
Vladimir Prus
fec30e0c6c
Workaround bugs in std::vector<bool> on msvc 7.1.
...
Thanks to Rob Lievaart for reporting/diagnosing this.
[SVN r23372]
2004-07-06 15:48:48 +00:00
Vladimir Prus
7a614e26ef
More declspecs.
...
[SVN r23280]
2004-06-30 07:16:09 +00:00
Vladimir Prus
82ecb460b3
Add missing DLL exports for Windows.
...
[SVN r23249]
2004-06-29 07:36: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
7c452dcfac
Another attempt to make sun happy.
...
[SVN r23108]
2004-06-17 07:00:01 +00:00