From d24e0ab1b3daaa92219b60a57dca51fa8e23103f Mon Sep 17 00:00:00 2001 From: museghost Date: Fri, 22 Oct 2021 18:44:38 +0900 Subject: [PATCH] fix shadow warning in gcc8 (#1) (#87) Co-authored-by: brian.kim --- include/bitsery/details/adapter_common.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/bitsery/details/adapter_common.h b/include/bitsery/details/adapter_common.h index 9282446..6a3bbc6 100644 --- a/include/bitsery/details/adapter_common.h +++ b/include/bitsery/details/adapter_common.h @@ -285,8 +285,8 @@ namespace bitsery { template void writeSwappedBuffer(const T *v, size_t count, std::true_type) { - std::for_each(v, std::next(v, count), [this](const T &v) { - const auto res = details::swap(v); + std::for_each(v, std::next(v, count), [this](const T &inner_v) { + const auto res = details::swap(inner_v); static_cast(this)->template writeInternalValue(reinterpret_cast(&res)); }); }