From cc4a9c8d5d1908cec10271a43d0952ac2099a494 Mon Sep 17 00:00:00 2001 From: ToruNiina Date: Sat, 15 Jun 2019 20:20:14 +0900 Subject: [PATCH] fix: consider identity conversion in SFINAE --- toml/get.hpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/toml/get.hpp b/toml/get.hpp index bbc9a09..1859bbb 100644 --- a/toml/get.hpp +++ b/toml/get.hpp @@ -69,7 +69,9 @@ get(basic_value&& v) template class M, template class V> -inline detail::enable_if_t::value, T> +inline detail::enable_if_t, + detail::negation>> + >::value, T> get(const basic_value& v) { return T(v);