From 4e29ba7d8f4ed729aedab3a3a3e32325812ab262 Mon Sep 17 00:00:00 2001 From: Luke Street Date: Fri, 18 Sep 2020 16:22:35 -0400 Subject: [PATCH] DNAOp: Fix clang -Wrange-loop-analysis errors --- include/athena/DNAOp.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/athena/DNAOp.hpp b/include/athena/DNAOp.hpp index ba502d3..b4ec911 100644 --- a/include/athena/DNAOp.hpp +++ b/include/athena/DNAOp.hpp @@ -500,7 +500,7 @@ struct Write { static std::enable_if_t> Do(const PropId& id, std::vector& vector, const S& count, StreamT& w) { /* libc++ specializes vector as a bitstream */ - for (const T& v : vector) + for (const T v : vector) w.writeBool(v); } static void Do(const PropId& id, std::unique_ptr& buf, size_t count, StreamT& w) { @@ -732,7 +732,7 @@ struct WriteYaml { StreamT& w) { /* libc++ specializes vector as a bitstream */ if (auto __v = w.enterSubVector(id.name)) - for (const T& v : vector) + for (const T v : vector) w.writeBool(v); } static void Do(const PropId& id, std::unique_ptr& buf, size_t count, StreamT& w) {