diff options
-rw-r--r-- | libdbpp/command.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libdbpp/command.h b/libdbpp/command.h index ce003c9..c9092b0 100644 --- a/libdbpp/command.h +++ b/libdbpp/command.h @@ -38,8 +38,8 @@ namespace DB { protected: /// Helper function to extract values from a CommandOptionsMap - template<typename X> - static X get(const CommandOptionsMap & map, const std::string & key, const X & def) + template<typename X, typename Y> + static X get(const CommandOptionsMap & map, const Y & key, const X & def) { if (auto i = map.find(key); i != map.end()) { if constexpr (std::is_convertible<CommandOptionsMap::mapped_type, X>::value) { |