Commit 09696f0a authored by Dominik Charousset's avatar Dominik Charousset

Allow calling config_value::set with C strings

parent e14d25df
...@@ -305,6 +305,8 @@ private: ...@@ -305,6 +305,8 @@ private:
data_ = std::move(x); data_ = std::move(x);
} else if constexpr (std::is_integral<T>::value) { } else if constexpr (std::is_integral<T>::value) {
data_ = static_cast<int64_t>(x); data_ = static_cast<int64_t>(x);
} else if constexpr (std::is_convertible<T, const char*>::value) {
data_ = std::string{x};
} else { } else {
static_assert(detail::is_iterable<T>::value); static_assert(detail::is_iterable<T>::value);
using value_type = typename T::value_type; using value_type = typename T::value_type;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment