mirror of
https://github.com/ToruNiina/toml11.git
synced 2025-09-18 02:08:09 +08:00
fix: remove redefined default template argument
This commit is contained in:
@@ -329,9 +329,7 @@ T get(const toml::value& v)
|
|||||||
}
|
}
|
||||||
template<typename T, typename std::enable_if<detail::conjunction<
|
template<typename T, typename std::enable_if<detail::conjunction<
|
||||||
detail::negation<detail::is_exact_toml_type<T>> // not a toml::value
|
detail::negation<detail::is_exact_toml_type<T>> // not a toml::value
|
||||||
>::value, std::nullptr_t>::type,
|
>::value, std::nullptr_t>::type, std::size_t> // and has from<T>
|
||||||
std::size_t = sizeof(::toml::from<T>) // and has from<T> specialization
|
|
||||||
>
|
|
||||||
T get(const toml::value& v)
|
T get(const toml::value& v)
|
||||||
{
|
{
|
||||||
return ::toml::from<T>::from_toml(v);
|
return ::toml::from<T>::from_toml(v);
|
||||||
|
Reference in New Issue
Block a user