Define OptionValueMap with using rather than inheritence

This commit is contained in:
Thomas Goyne 2014-03-31 09:54:20 -07:00
parent c59b9d59b8
commit a050b43621
1 changed files with 1 additions and 7 deletions

View File

@ -39,13 +39,7 @@ DEFINE_SIMPLE_EXCEPTION_NOINNER(OptionErrorDuplicateKey, OptionError, "options/d
class OptionValue; class OptionValue;
class OptionValueMap final : public std::map<std::string, std::unique_ptr<OptionValue>> { using OptionValueMap = std::map<std::string, std::unique_ptr<OptionValue>>;
private:
OptionValueMap(const OptionValueMap& x);
OptionValueMap& operator=(const OptionValueMap& x);
public:
OptionValueMap() {};
};
class Options { class Options {
public: public: