Define OptionValueMap with using rather than inheritence
This commit is contained in:
parent
c59b9d59b8
commit
a050b43621
1 changed files with 1 additions and 7 deletions
|
@ -39,13 +39,7 @@ DEFINE_SIMPLE_EXCEPTION_NOINNER(OptionErrorDuplicateKey, OptionError, "options/d
|
|||
|
||||
class OptionValue;
|
||||
|
||||
class OptionValueMap final : public std::map<std::string, std::unique_ptr<OptionValue>> {
|
||||
private:
|
||||
OptionValueMap(const OptionValueMap& x);
|
||||
OptionValueMap& operator=(const OptionValueMap& x);
|
||||
public:
|
||||
OptionValueMap() {};
|
||||
};
|
||||
using OptionValueMap = std::map<std::string, std::unique_ptr<OptionValue>>;
|
||||
|
||||
class Options {
|
||||
public:
|
||||
|
|
Loading…
Reference in a new issue