diff --git a/README.md b/README.md index c4d2af5..54269f8 100644 --- a/README.md +++ b/README.md @@ -121,6 +121,9 @@ toml::from_toml(std::tie(i, d, s, a), data.at("something")); Here, only matched value will be filled. The others are left intact after calling `from_toml`. +It should be noted that `toml::from_toml` _returns as usual even if there are no +matched type_. + `from_toml` can be used also for single type. diff --git a/toml/from_toml.hpp b/toml/from_toml.hpp index 741b9a1..5e75fa8 100644 --- a/toml/from_toml.hpp +++ b/toml/from_toml.hpp @@ -100,7 +100,7 @@ struct from_toml_tie_impl<0, Ts...> { static void invoke(std::tuple tie, const toml::value& v) { - throw type_error("from_toml(tie, value): no match"); + return; } };