diff --git a/toml/value.hpp b/toml/value.hpp index 74b2265..ef4bd15 100644 --- a/toml/value.hpp +++ b/toml/value.hpp @@ -572,6 +572,14 @@ class value return *this; } + // for internal use ------------------------------------------------------ + + template::value, std::nullptr_t>::type = nullptr> + value(std::pair> parse_result) + : value(std::move(parse_result.first), std::move(parse_result.second)) + {} + // type checking and casting ============================================ template