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:
Vladimir Prus
2004-05-25 07:00:32 +00:00
parent 40defa6f24
commit b184eaeadb

View File

@@ -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. */