X-Git-Url: http://git.tdb.fi/?p=libs%2Fcore.git;a=blobdiff_plain;f=source%2Fcore%2Fgetopt.cpp;h=6f7b1f807c9d719d3829959db91370860a62fabe;hp=ec821e0d26aea1372c3314cc8a1a99a268d5443e;hb=44da9fc9afb6b7e49c1558c5572213a1e6f401e8;hpb=f24e7b96e76b63c9b9b8a6bce4c7a9db64276ea8 diff --git a/source/core/getopt.cpp b/source/core/getopt.cpp index ec821e0..6f7b1f8 100644 --- a/source/core/getopt.cpp +++ b/source/core/getopt.cpp @@ -260,7 +260,7 @@ string GetOpt::generate_help() const bool any_short = any_of(opts.begin(), opts.end(), [](const OptionImpl *o){ return o->get_short(); }); string::size_type maxw = 0; - list switches; + vector switches; for(const OptionImpl *o: opts) { string swtch; @@ -289,7 +289,7 @@ string GetOpt::generate_help() const maxw = max(maxw, swtch.size()); } - list pargs; + vector pargs; for(const ArgumentImpl *a: args) { string parg = format("<%s>", a->get_name());