diff --git a/src/memchunk.h b/src/memchunk.h index 8e0b38e0..329a326e 100644 --- a/src/memchunk.h +++ b/src/memchunk.h @@ -83,10 +83,14 @@ template struct Memchunk { void reset() { pos = last = std::begin(buf); } std::array buf; +#if defined(_MSC_VER) std::_Array_iterator pos; std::_Array_iterator last; - - // uint8_t *pos, *last; +#else + uint8_t *pos, *last; +#endif + + Memchunk *knext; Memchunk *next; static const size_t size = N;