circular_buffer
circular_buffer copied to clipboard
Boost.org circular_buffer module
``` boost/circular_buffer/include/boost/circular_buffer/details.hpp:263:15: error: definition of implicit copy constructor for 'iterator' is deprecated because it has a user-declared copy assignment operator [-Werror,-Wdeprecated-copy] iterator& operator=(const iterator&) = default; ^ ```
As can be seen in https://godbolt.org/z/5aabcr99d, `boost/circular_buffer/space_optimized.hpp` is not self-contained and including (only) it causes a compilation error.
based on https://github.com/boostorg/circular_buffer/pull/15 request by [AI0867](https://github.com/boostorg/circular_buffer/commits?author=AI0867)
This is what most standard containers are doing today. By replacing std::deque with boost::circular, I got a few compilation errors... Prior to C++11, the guideline was to prefer iterator because...
this should be trivial to do. In fact, I might give implementing it a shot...
Hello, Would it be possible to improve complexity of `circular_buffer::resize(new_size, item)` in the case where `T` is scalar ? Currently, complexity is always linear. It would be nice to have...
GitHub Actions CI script, generated from the .travis.yml file. Please refer to https://github.com/CPPAlliance/githubactions for more information and instructions.
Using gcc 9.1 with -fsanitize=undefined and -DBOOST_CB_ENABLE_DEBUG=1, the following code results in a ubsan error: "boost/circular_buffer/debug.hpp:37:16: runtime error: null pointer passed as argument 1, which is declared to never be...
Hi, I have created a boost::circular_buffer using the default ctor. Then I call set_capacity(100) and then I push_back() a thousand elements: the size() of the circular buffer is reported as...