fix shadow warning in gcc8 (#1) (#87)

Co-authored-by: brian.kim <brian.kim@beatthemarket.co.kr>
This commit is contained in:
museghost
2021-10-22 18:44:38 +09:00
committed by GitHub
parent c0fc083c9d
commit d24e0ab1b3

View File

@@ -285,8 +285,8 @@ namespace bitsery {
template<typename T>
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<Adapter*>(this)->template writeInternalValue<sizeof(T)>(reinterpret_cast<const typename Adapter::TValue *>(&res));
});
}