mirror of
https://github.com/boostorg/program_options.git
synced 2026-01-19 04:22:15 +00:00
Don't pass variables of different types to std::max, since this break
template argument deduction. It appears that on Darwin, unsigned and size_t are different types. [SVN r22915]
This commit is contained in:
@@ -308,7 +308,7 @@ namespace boost { namespace program_options {
|
||||
const option_description& opt = *options[i];
|
||||
stringstream ss;
|
||||
ss << " " << opt.format_name() << ' ' << opt.format_parameter();
|
||||
width = max(width, ss.str().size());
|
||||
width = max(width, static_cast<unsigned>(ss.str().size()));
|
||||
}
|
||||
|
||||
/* The options formatting style is stolen from Subversion. */
|
||||
|
||||
Reference in New Issue
Block a user