mirror of
https://github.com/ToruNiina/toml11.git
synced 2025-09-18 02:08:09 +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"}
|
{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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user