diff options
Diffstat (limited to 'src/cam/options.h')
-rw-r--r-- | src/cam/options.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/cam/options.h b/src/cam/options.h index 6e3ef62e..5e346b47 100644 --- a/src/cam/options.h +++ b/src/cam/options.h @@ -47,6 +47,9 @@ template<typename T> class OptionsBase { public: + OptionsBase() : valid_(false) {} + + bool empty() const; bool valid() const; bool isSet(const T &opt) const; const OptionValue &operator[](const T &opt) const; @@ -56,9 +59,9 @@ private: friend class OptionsParser; bool parseValue(const T &opt, const Option &option, const char *value); - void clear(); std::map<T, OptionValue> values_; + bool valid_; }; class KeyValueParser |