change string view to spdlogs, remove bool type

pull/2687/head
Bailey Chittle 3 years ago
parent 59b09c7a18
commit e9344434eb

@ -11,7 +11,7 @@ namespace details {
template<typename T>
struct is_string
: public std::integral_constant<bool, std::is_convertible<T, std::string>::value || std::is_convertible<T, std::string_view>::value>
: public std::integral_constant<bool, std::is_convertible<T, std::string>::value || std::is_convertible<T, string_view_t>::value>
{};
template<typename T>
@ -37,12 +37,6 @@ public:
: key(std::string(k))
, value(std::to_string(v))
{}
template<typename key_t, typename std::enable_if<is_string<key_t>::value, key_t>::type * = nullptr>
attr(key_t const &k, bool const v)
: key(std::string(k))
, value(v ? "true" : "false")
{}
};
} // namespace details

Loading…
Cancel
Save