Compare commits

..

2 Commits

Author SHA1 Message Date
Ronald Garcia
2b9118089f Created a branch from trunk
[SVN r38959]
2007-08-26 05:34:35 +00:00
Vladimir Prus
8329c28a1a Apply patch to fix gcc warning.
Fixes #1209.


[SVN r38871]
2007-08-23 19:51:47 +00:00

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