]> git.tdb.fi Git - libs/core.git/blobdiff - source/core/getopt.h
Use a typedef for the option descriptor list
[libs/core.git] / source / core / getopt.h
index 53c9ddf2f0100681099df40466e125914e5e74b3..4f53cc2ddcafd2b4fbabb19be9e4150120d9bb6d 100644 (file)
@@ -141,8 +141,10 @@ private:
                { data.push_back(lexical_cast<typename T::value_type>(a)); }
        };
 
                { data.push_back(lexical_cast<typename T::value_type>(a)); }
        };
 
+       typedef std::list<OptBase *> OptionList;
+
        bool help;
        bool help;
-       std::list<OptBase *> opts;
+       OptionList opts;
        std::vector<std::string> args;
 
 public:
        std::vector<std::string> args;
 
 public: