From aade704411e41e19c9a4c80443916126c775daa9 Mon Sep 17 00:00:00 2001 From: ToruNiina Date: Mon, 18 Mar 2019 17:10:18 +0900 Subject: [PATCH] refactor: remove needless overload of get_or --- toml/get.hpp | 34 ---------------------------------- 1 file changed, 34 deletions(-) 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)