set test_from_toml

This commit is contained in:
ToruNiina
2018-12-13 02:24:03 +09:00
parent 77b237c53a
commit 514f3c773f
3 changed files with 47 additions and 175 deletions

View File

@@ -8,7 +8,7 @@ namespace toml
template<typename T>
void from_toml(T& x, const toml::value& v)
{
x = toml::get<T>(v);
x = toml::get<typename std::remove_reference<T>::type>(v);
return;
}