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)); }); }