fix: fix has_specialized_from/into

to avoid ambiguity
This commit is contained in:
ToruNiina 2021-05-14 16:01:43 +09:00
parent 72ee8caf09
commit e622595426

View File

@ -92,15 +92,15 @@ struct has_specialized_from_impl
{
template<typename T>
static std::false_type check(...);
template<typename T>
static std::true_type check(std::nullptr_t, std::size_t S = sizeof(::toml::from<T>));
template<typename T, std::size_t S = sizeof(::toml::from<T>)>
static std::true_type check(::toml::from<T>*);
};
struct has_specialized_into_impl
{
template<typename T>
static std::false_type check(...);
template<typename T>
static std::true_type check(std::nullptr_t, std::size_t S = sizeof(::toml::into<T>));
template<typename T, std::size_t S = sizeof(::toml::into<T>)>
static std::true_type check(::toml::from<T>*);
};