From c1d29d2c92c186747770c545636fe036a7ff1b81 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Tue, 5 Feb 2019 23:47:23 +0000 Subject: Template key arg for deriving comparator --- libdbpp/command.h | 4 ++-- 1 file 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 - static X get(const CommandOptionsMap & map, const std::string & key, const X & def) + template + 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::value) { -- cgit v1.2.3