only mutable ranges are iterable

master
Daniel Kolesa 2018-04-26 00:44:42 +02:00
parent e0986692ef
commit 11a366f469
1 changed files with 2 additions and 1 deletions

View File

@ -132,7 +132,8 @@ private:
if constexpr (std::is_constructible_v<std::string, R const &>) {
p_deps.emplace_back(v);
} else {
for (auto const &sv: v) {
R mr{v};
for (auto const &sv: mr) {
p_deps.emplace_back(sv);
}
}