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 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:
|
||||||
|
|
Loading…
Reference in a new issue