fix: workaround for error around SFINAE in MSVC

avoid lambda with template argument
This commit is contained in:
ToruNiina
2020-09-29 02:26:16 +09:00
parent 96cfdb260a
commit 05ceb5ae79

View File

@@ -338,8 +338,10 @@ get(const basic_value<C, M, V>& v)
{v.location(), "here"} {v.location(), "here"}
})); }));
} }
std::transform(ar.cbegin(), ar.cend(), container.begin(), for(std::size_t i=0; i<ar.size(); ++i)
[](const basic_value<C, M, V>& x){return ::toml::get<value_type>(x);}); {
container[i] = ::toml::get<value_type>(ar[i]);
}
return container; return container;
} }