diff --git a/toml/get.hpp b/toml/get.hpp index 5095caf..9a5a855 100644 --- a/toml/get.hpp +++ b/toml/get.hpp @@ -255,9 +255,9 @@ get(const basic_value&); // toml::from::from_toml(v) template class M, template class V, - std::size_t S = sizeof(::toml::from)> -T get(const basic_value&); + template class M, template class V> +detail::enable_if_t::value, T> +get(const basic_value&); // T(const toml::value&) and T is not toml::basic_value template& v) return ud; } template class M, template class V, - std::size_t> -T get(const basic_value& v) + template class M, template class V> +detail::enable_if_t::value, T> +get(const basic_value& v) { return ::toml::from::from_toml(v); }