Ticket #8012 (new Bugs)

Opened 3 years ago

Last modified 2 years ago

Inconsistency in linearize()

Reported by: Serge Meynard <serge.meynard@…> Owned by: no-maintainer
Milestone: To Be Determined Component: circular_buffer
Version: Boost 1.52.0 Severity: Problem
Keywords: linearize empty Cc:


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.


Change History

comment:1 Changed 2 years ago by jano_gaspar

  • Owner changed from jano_gaspar to no-maintainer

Add a comment

Modify Ticket

Change Properties
<Author field>
as new

E-mail address and user name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.