diff --git a/stl/inc/xutility b/stl/inc/xutility index 235fd627b38..381487b3654 100644 --- a/stl/inc/xutility +++ b/stl/inc/xutility @@ -5815,7 +5815,11 @@ namespace ranges { return _RANGES next(_STD move(_First), _Result - _First_ptr); } #else // ^^^ _USE_STD_VECTOR_ALGORITHMS / not _USE_STD_VECTOR_ALGORITHMS vvv - if constexpr (sizeof(_Iter_value_t<_It>) == 1 && _Is_sized /* TRANSITION, DevCom-1615707 */) { + if constexpr (sizeof(_Iter_value_t<_It>) == 1 +#if defined(_M_ARM64) || defined(_M_ARM64EC) // TRANSITION, VSO-1538014 : memchr inspects bytes after the match + && _Is_sized +#endif // ^^^ workaround ^^^ + ) { size_t _Count; if constexpr (_Is_sized) { _Count = static_cast(_Last - _First);