X-Git-Url: http://git.tdb.fi/?p=libs%2Fcore.git;a=blobdiff_plain;f=source%2Fcore%2Fgetopt.h;h=77cf4f2981a59ee6fd36a4acb80e104fb13e1491;hp=2824a0b7c7f3b79378477853fa8874300a98eb75;hb=c13c5d2e330e4cee177c1fd8e0b6153c7e2503e4;hpb=521cf1db00f8ce2d9f9494dca503d6c17d89ac2f diff --git a/source/core/getopt.h b/source/core/getopt.h index 2824a0b..77cf4f2 100644 --- a/source/core/getopt.h +++ b/source/core/getopt.h @@ -7,10 +7,10 @@ Distributed under the LGPL #ifndef MSP_CORE_GETOPT_H_ #define MSP_CORE_GETOPT_H_ -#include #include #include -#include "error.h" +#include +#include "except.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 &);