id,summary,reporter,owner,description,type,status,milestone,component,version,severity,resolution,keywords,cc 4603,circular_buffer_space_optimized does not grow when capacity runs out,daniel.amthauer@…,Jan Gaspar,"Contrary to what the documentation specifies, circular_buffer_space_optimized does not grow when capacity runs out. The problem seems to be in line 1243 of space_optimized.hpp: {{{ #!cpp 1239 //! Ensure the reserve for possible growth up. 1240 size_type ensure_reserve(size_type new_capacity, size_type buffer_size) const { 1241 if (buffer_size + new_capacity / 5 >= new_capacity) 1242 new_capacity *= 2; // ensure at least 20% reserve /// shouldn't this be less-than? 1243 if (new_capacity > m_capacity_ctrl) 1244 return m_capacity_ctrl; 1245 return new_capacity; 1246 } }}} I've tested changing the ""greater-than"" sign on line 1243 to a ""less-than"" and that works fine.",Bugs,closed,To Be Determined,circular_buffer,Boost 1.43.0,Problem,invalid,,