|
|
|
@ -75,14 +75,12 @@ class Parameter
|
|
|
|
|
|
|
|
|
|
// Class for parameter which must be in named pair
|
|
|
|
|
template <class Converter, bool O> |
|
|
|
|
class NamedParameter: public Parameter<Converter,O>, public TemplateComparator |
|
|
|
|
class NamedParameter: public TemplateComparator, public Parameter<Converter,O> |
|
|
|
|
{ |
|
|
|
|
public: |
|
|
|
|
using AcceptableObject=void; |
|
|
|
|
template<class... Args> |
|
|
|
|
NamedParameter(const std::string& t, Args... args):Parameter<Converter,O>(t,args...),TemplateComparator(t) {} |
|
|
|
|
template<class... Args> |
|
|
|
|
NamedParameter(std::pair<std::string,std::string>&& t, Args... args):Parameter<Converter,O>(std::move(t.first),args...),TemplateComparator(std::move(t.second)) {} |
|
|
|
|
NamedParameter(const std::string& t, Args... args):TemplateComparator(t),Parameter<Converter,O>(Template2Name(),args...) {} |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|