diff --git a/toml/get.hpp b/toml/get.hpp index e3bbffc..4e79783 100644 --- a/toml/get.hpp +++ b/toml/get.hpp @@ -545,40 +545,6 @@ T get_or(const toml::value& v, T&& opt) return opt; } } -template>, - detail::negation>, - detail::negation::type>> - >::value, std::nullptr_t>::type = nullptr> -T get_or(toml::value& v, T&& opt) -{ - try - { - return get::type>::type>(v); - } - catch(...) - { - return opt; - } -} -template>, - detail::negation>, - detail::negation::type>> - >::value, std::nullptr_t>::type = nullptr> -T get_or(toml::value&& v, T&& opt) -{ - try - { - return get::type>::type>(v); - } - catch(...) - { - return opt; - } -} template auto get_or(const toml::table& tab, const toml::key& ky, T&& opt)