Compare commits

...

3 Commits

Author SHA1 Message Date
Daniel James
4374acd557 Merge with the offending files removed.
[SVN r39995]
2007-10-13 23:18:35 +00:00
Daniel James
3f14d81e7b Merge from trunk.
[SVN r39016]
2007-08-27 19:56:02 +00:00
Daniel James
f82880013b Create a development branch for the hash library.
[SVN r38869]
2007-08-23 19:28:19 +00:00
2 changed files with 10 additions and 9 deletions

View File

@@ -290,8 +290,8 @@ namespace boost { namespace program_options { namespace detail {
// First check that the option is valid, and get its description.
// TODO: case-sensitivity.
const option_description* xd =
m_desc->find_nothrow(opt.string_key, (m_style & allow_guessing));
const option_description* xd = m_desc->find_nothrow(opt.string_key,
(m_style & allow_guessing) ? true : false);
if (!xd)
{
@@ -470,7 +470,8 @@ namespace boost { namespace program_options { namespace detail {
((m_style & allow_slash_for_short) && tok[0] == '/')))
{
if (m_desc->find_nothrow(tok.substr(1, tok.find('=')-1),
m_style & allow_guessing)) {
(m_style & allow_guessing) ? true : false))
{
args[0].insert(0, "-");
if (args[0][1] == '/')
args[0][1] = '-';

View File

@@ -254,7 +254,7 @@ namespace boost { namespace program_options {
return m_options;
}
const option_description*
const option_description*
options_description::find_nothrow(const std::string& name,
bool approx) const
{
@@ -279,10 +279,10 @@ namespace boost { namespace program_options {
//
// For now, we don't check the situation when there are
// two full matches.
if (r == option_description::full_match)
{
return m_options[i].get();
return m_options[i].get();
}
found = m_options[i];
@@ -293,8 +293,8 @@ namespace boost { namespace program_options {
if (approximate_matches.size() > 1)
boost::throw_exception(
ambiguous_option(name, approximate_matches));
else
return found.get();
return found.get();
}
BOOST_PROGRAM_OPTIONS_DECL
@@ -408,7 +408,7 @@ namespace boost { namespace program_options {
{
// is last_space within the second half ot the
// current line
if (unsigned(distance(last_space, line_end)) <
if ((unsigned)distance(last_space, line_end) <
(line_length - indent) / 2)
{
line_end = last_space;