diff --git a/toml/get.hpp b/toml/get.hpp index 03cf10e..416aa04 100644 --- a/toml/get.hpp +++ b/toml/get.hpp @@ -68,6 +68,17 @@ get(basic_value&& v) return std::move(v); } +// ============================================================================ +// T == toml::basic_value; basic_value -> basic_value + +template class M, template class V> +inline enable_if_t::value, T> +get(const basic_value& v) +{ + return T(v); +} + // ============================================================================ // integer convertible from toml::Integer