From 11a366f4694d19664328e09340ca55a029afd9b8 Mon Sep 17 00:00:00 2001 From: q66 Date: Thu, 26 Apr 2018 00:44:42 +0200 Subject: [PATCH] only mutable ranges are iterable --- ostd/build/make.hh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ostd/build/make.hh b/ostd/build/make.hh index f17990a..37360e8 100644 --- a/ostd/build/make.hh +++ b/ostd/build/make.hh @@ -132,7 +132,8 @@ private: if constexpr (std::is_constructible_v) { p_deps.emplace_back(v); } else { - for (auto const &sv: v) { + R mr{v}; + for (auto const &sv: mr) { p_deps.emplace_back(sv); } }