mirror of
https://github.com/boostorg/program_options.git
synced 2026-01-19 04:22:15 +00:00
Fix 'ambiguous else clause' compiler warning.
Fixes #3556. Patch from Mateusz Loskot. [SVN r57270]
This commit is contained in:
@@ -72,10 +72,12 @@ namespace boost { namespace program_options {
|
||||
if (approx)
|
||||
{
|
||||
if (m_long_name.find(option) == 0)
|
||||
{
|
||||
if (m_long_name == option)
|
||||
result = full_match;
|
||||
else
|
||||
result = approximate_match;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user