mirror of
https://github.com/ToruNiina/toml11.git
synced 2025-09-17 09:08:08 +08:00
fix: workaround for error around SFINAE in MSVC
avoid lambda with template argument
This commit is contained in:
@@ -338,8 +338,10 @@ get(const basic_value<C, M, V>& v)
|
||||
{v.location(), "here"}
|
||||
}));
|
||||
}
|
||||
std::transform(ar.cbegin(), ar.cend(), container.begin(),
|
||||
[](const basic_value<C, M, V>& x){return ::toml::get<value_type>(x);});
|
||||
for(std::size_t i=0; i<ar.size(); ++i)
|
||||
{
|
||||
container[i] = ::toml::get<value_type>(ar[i]);
|
||||
}
|
||||
return container;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user