X-Git-Url: http://git.tdb.fi/?p=libs%2Fcore.git;a=blobdiff_plain;f=source%2Fcore%2Fgetopt.h;h=3315108f05d34939d6d8d609fae973c915252296;hp=2824a0b7c7f3b79378477853fa8874300a98eb75;hb=0fa00d18f607f329d2b2a979e1d4339e233817fa;hpb=521cf1db00f8ce2d9f9494dca503d6c17d89ac2f diff --git a/source/core/getopt.h b/source/core/getopt.h index 2824a0b..3315108 100644 --- a/source/core/getopt.h +++ b/source/core/getopt.h @@ -7,9 +7,9 @@ Distributed under the LGPL #ifndef MSP_CORE_GETOPT_H_ #define MSP_CORE_GETOPT_H_ -#include #include #include +#include #include "error.h" namespace Msp { @@ -46,7 +46,7 @@ public: OptBase(char s, const std::string &l, ArgType a): shrt(s), lng(l), arg_type(a), seen_count(0) { } }; - const std::list &get_args() const { return args; } + const std::vector &get_args() const { return args; } template OptBase &add_option(char s, const std::string &l, T &d, ArgType a=NO_ARG) @@ -128,7 +128,7 @@ private: }; std::list opts; - std::list args; + std::vector args; OptBase &get_option(char); OptBase &get_option(const std::string &);