From e62259542662551b1a67bebc5823fda3373423c4 Mon Sep 17 00:00:00 2001 From: ToruNiina Date: Fri, 14 May 2021 16:01:43 +0900 Subject: [PATCH] fix: fix has_specialized_from/into to avoid ambiguity --- toml/traits.hpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/toml/traits.hpp b/toml/traits.hpp index 209856d..0064e37 100644 --- a/toml/traits.hpp +++ b/toml/traits.hpp @@ -92,15 +92,15 @@ struct has_specialized_from_impl { template static std::false_type check(...); - template - static std::true_type check(std::nullptr_t, std::size_t S = sizeof(::toml::from)); + template)> + static std::true_type check(::toml::from*); }; struct has_specialized_into_impl { template static std::false_type check(...); - template - static std::true_type check(std::nullptr_t, std::size_t S = sizeof(::toml::into)); + template)> + static std::true_type check(::toml::from*); };