Commit Graph

11 Commits

Author SHA1 Message Date
Glen Fernandes
3d3b5bffd4 Switch to lightweight_test for unit tests and switch to non-deprecated timer 2019-04-23 17:42:53 -04:00
Andrey Semashev
ea60799f31 Disable debug implementation by default
The debug implementation is not thread-safe, even if different threads are using separate iterators for reading elements of the container. BOOST_CB_DISABLE_DEBUG macro is no longer used, BOOST_CB_ENABLE_DEBUG=1 should be defined instead to enable debug support.

Fixes https://svn.boost.org/trac/boost/ticket/6277.
2016-04-29 00:56:06 +03:00
Antony Polukhin
a739343a66 Improved rvalues move support for elements of circular_buffer (refs #7888):
* all `erase` methods now use move construction to to move elements
* space optimized circullar buffer now has move constructor, move assignment and functions that work with rvalues 
* more methods marked as BOOST_NOEXCEPT
* much more tests

[SVN r85003]
2013-07-11 14:55:24 +00:00
Antony Polukhin
62b25b47c7 Improved rvalues move support for elements of circular_buffer (refs #7888):
* set_capacity and rset_capacity now work with move-only types if move constructor of type marked with `noexcept`
* force placement ::new usage
* minor optimizations (move values in more cases)
* more tests

[SVN r84991]
2013-07-09 15:06:16 +00:00
Antony Polukhin
4d86f119cb Improved rvalues move support for elements of circular_buffer (refs #7888):
* move_if_noexcept uses is_copy_constructible trait
* more tests, tests are now more strict
* linearize() now works with move-only types

[SVN r84988]
2013-07-09 09:32:45 +00:00
Antony Polukhin
4eb876042e Add basic rvalues move support for elements of circular_buffer (refs #7888). Patch uses Boost.Move to emulate rvalues in C++03
[SVN r84984]
2013-07-08 13:41:58 +00:00
Antony Polukhin
693933160d Basic commit of C++11 move constructor and move assignment for circular_buffer (refs #7888). some of the functions marked with BOOST_NOEXCEPT
[SVN r84941]
2013-07-02 13:51:55 +00:00
Jan Gaspar
5a680c08ee circular_buffer: major update; added rotate method, bugfix #1987
[SVN r47738]
2008-07-23 20:40:46 +00:00
Jan Gaspar
e1472df6d8 circular_buffer: updated documentation
[SVN r42938]
2008-01-23 23:04:57 +00:00
Markus Schöpflin
e5e0b86733 Disambiguate the identifier 'exception' and fix vector construction to make the test pass on Tru64/CXX.
[SVN r39874]
2007-10-10 07:42:19 +00:00
Jan Gaspar
03093ed0f9 circular_buffer: added
[SVN r37706]
2007-05-18 11:18:06 +00:00