]> git.donarmstrong.com Git - lilypond.git/blobdiff - flower/getopt-long.cc
Issue 4550 (2/2) Avoid "using namespace std;" in included files
[lilypond.git] / flower / getopt-long.cc
index 9adc0c3592d2a2de84ea96e7e4b6935988ec4479..658faed9219b955c105a33e01a63751d678bcf4e 100644 (file)
@@ -36,6 +36,8 @@ gettext (char const *s)
 #include <libintl.h>
 #endif
 
+using std::string;
+
 long
 Getopt_long::get_argument_index ()
 {
@@ -316,7 +318,7 @@ Long_option_init::table_string (Long_option_init *l)
 
   size_t wid = 0;
   for (int i = 0; l[i].shortname_char_ || l[i].longname_str0_; i++)
-    wid = max (wid, l[i].str_for_help ().length ());
+    wid = std::max (wid, l[i].str_for_help ().length ());
 
   for (int i = 0; l[i].shortname_char_ || l[i].longname_str0_; i++)
     {