Ticket #7086: options_description.cpp.patch
File options_description.cpp.patch, 1.6 KB (added by , 10 years ago) |
---|
-
options_description.cpp
147 147 if (prefix_style == command_line_style::allow_long_disguise) 148 148 return "-" + m_long_name; 149 149 } 150 150 // sanity check: m_short_name[0] should be '-' or '/' 151 151 if (m_short_name.length() == 2) 152 152 { 153 153 if (prefix_style == command_line_style::allow_slash_for_short) … … 469 469 // Take care to never increment the iterator past 470 470 // the end, since MSVC 8.0 (brokenly), assumes that 471 471 // 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); 473 473 string::const_iterator line_end = line_begin + 474 474 ((remaining < line_length) ? remaining : line_length); 475 475 … … 489 489 { 490 490 // is last_space within the second half ot the 491 491 // current line 492 if (static_cast<unsigned>( distance(last_space, line_end)) <492 if (static_cast<unsigned>(std::distance(last_space, line_end)) < 493 493 (line_length / 2)) 494 494 { 495 495 line_end = last_space;