From b184eaeadbfc3bf2e65a9d550094a16911944e7d Mon Sep 17 00:00:00 2001 From: Vladimir Prus Date: Tue, 25 May 2004 07:00:32 +0000 Subject: [PATCH] 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] --- src/options_description.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/options_description.cpp b/src/options_description.cpp index 0b5fdf4..1fcd2fd 100644 --- a/src/options_description.cpp +++ b/src/options_description.cpp @@ -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(ss.str().size())); } /* The options formatting style is stolen from Subversion. */