We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 43b83c5 commit 05b0f60Copy full SHA for 05b0f60
src/iceberg/util/config.h
@@ -67,10 +67,13 @@ class ConfigBase {
67
template <typename T>
68
class Entry {
69
public:
70
- Entry(std::string key, const T& val,
+ Entry(std::string key, T val,
71
std::function<std::string(const T&)> to_str = internal::DefaultToString<T>,
72
std::function<T(const std::string&)> from_str = internal::DefaultFromString<T>)
73
- : key_{std::move(key)}, default_{val}, to_str_{to_str}, from_str_{from_str} {}
+ : key_{std::move(key)},
74
+ default_{std::move(val)},
75
+ to_str_{std::move(to_str)},
76
+ from_str_{std::move(from_str)} {}
77
78
private:
79
const std::string key_;
0 commit comments