mirror of
https://github.com/ToruNiina/toml11.git
synced 2025-09-18 02:08:09 +08:00
fix: fix has_specialized_from/into
to avoid ambiguity
This commit is contained in:
@@ -92,15 +92,15 @@ struct has_specialized_from_impl
|
|||||||
{
|
{
|
||||||
template<typename T>
|
template<typename T>
|
||||||
static std::false_type check(...);
|
static std::false_type check(...);
|
||||||
template<typename T>
|
template<typename T, std::size_t S = sizeof(::toml::from<T>)>
|
||||||
static std::true_type check(std::nullptr_t, std::size_t S = sizeof(::toml::from<T>));
|
static std::true_type check(::toml::from<T>*);
|
||||||
};
|
};
|
||||||
struct has_specialized_into_impl
|
struct has_specialized_into_impl
|
||||||
{
|
{
|
||||||
template<typename T>
|
template<typename T>
|
||||||
static std::false_type check(...);
|
static std::false_type check(...);
|
||||||
template<typename T>
|
template<typename T, std::size_t S = sizeof(::toml::into<T>)>
|
||||||
static std::true_type check(std::nullptr_t, std::size_t S = sizeof(::toml::into<T>));
|
static std::true_type check(::toml::from<T>*);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user