From 17e6167317e11aa21af69ee5af2ef64b65405f04 Mon Sep 17 00:00:00 2001 From: Roland Reichwein Date: Fri, 23 Jan 2026 19:33:08 +0100 Subject: [PATCH] Remove advance() on static spans (#1281) * Remove AppVeyor build status badge Removed AppVeyor build status badge from README. * Update README.md * Update CONTRIBUTING.md Updated the instructions for contributing. * Fix for issue 1276 "Data corruption in the etl::bip_buffer_spsc_atomic" (#1277) * Reproduce data corruption bug in the `etl::bip_buffer_spsc_atomic`. * Fix data corruption bug in the `etl::bip_buffer_spsc_atomic`. * Remove advance() on static spans Since the size of a static span is constant, we can't reasonably advance() on it. --------- Co-authored-by: John Wellbelove Co-authored-by: Sergei --- include/etl/span.h | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/include/etl/span.h b/include/etl/span.h index 5d03632a..c60a9125 100644 --- a/include/etl/span.h +++ b/include/etl/span.h @@ -605,16 +605,6 @@ namespace etl #endif } - //************************************************************************* - /// Moves the pointer to the first element of the span further by a specified number of elements. - ///\tparam elements Number of elements to move forward - //************************************************************************* - void advance(size_t elements) ETL_NOEXCEPT - { - elements = etl::min(elements, size()); - pbegin += elements; - } - //************************************************************************* /// Reinterpret the span as a span with different element type. //*************************************************************************