Skip to content

Commit 94fc1c6

Browse files
committed
Qualify 'distance' with 'std'.
Fixes #7086. [SVN r79280]
1 parent 3360ad0 commit 94fc1c6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/options_description.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ namespace boost { namespace program_options {
147147
if (prefix_style == command_line_style::allow_long_disguise)
148148
return "-" + m_long_name;
149149
}
150-
// sanity check: m_short_name[0] should be '-' or '/'
150+
// sanity check: m_short_name[0] should be '-' or '/'
151151
if (m_short_name.length() == 2)
152152
{
153153
if (prefix_style == command_line_style::allow_slash_for_short)
@@ -469,7 +469,7 @@ namespace boost { namespace program_options {
469469
// Take care to never increment the iterator past
470470
// the end, since MSVC 8.0 (brokenly), assumes that
471471
// doing that, even if no access happens, is a bug.
472-
unsigned remaining = distance(line_begin, par_end);
472+
unsigned remaining = std::distance(line_begin, par_end);
473473
string::const_iterator line_end = line_begin +
474474
((remaining < line_length) ? remaining : line_length);
475475

@@ -489,7 +489,7 @@ namespace boost { namespace program_options {
489489
{
490490
// is last_space within the second half ot the
491491
// current line
492-
if (static_cast<unsigned>(distance(last_space, line_end)) <
492+
if (static_cast<unsigned>(std::distance(last_space, line_end)) <
493493
(line_length / 2))
494494
{
495495
line_end = last_space;

0 commit comments

Comments
 (0)