Subject: [Boost-bugs] [Boost C++ Libraries] #8012: Inconsistency in linearize()
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2013-02-08 17:41:29
#8012: Inconsistency in linearize()
-------------------------------------------------------------+--------------
Reporter: Serge Meynard <serge.meynard@â¦> | Owner: jano_gaspar
Type: Bugs | Status: new
Milestone: To Be Determined | Component: circular_buffer
Version: Boost 1.52.0 | Severity: Problem
Keywords: linearize empty |
-------------------------------------------------------------+--------------
Assume two equivalent non-empty circular buffers A and B, with A reporting
as linearized and B as not linearized. After calling ''clear()'' on them,
they will both still report the same linearized state as before; the
linearized state applies to all buffers, whether empty or not. However,
calling ''linearize()'' on the non-linearized empty buffer B will
'''not''' linearize it, which is inconsistent.
One option to fix this would be to automatically linearize a buffer when
it becomes empty, but that would force some overhead even in cases where
it is unnecessary. A better solution would be to make ''linearize()'' work
normally even on empty buffers.
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/8012> Boost C++ Libraries <http://www.boost.org/> Boost provides free peer-reviewed portable C++ source libraries.
This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:11 UTC