58 Commits

Author SHA1 Message Date
Rene Rivera
36ac5b3a29 Update build deps. 2024-07-31 08:32:04 -05:00
Rene Rivera
2959b67a60 Make the library modular usable. 2024-03-11 08:27:02 -05:00
Antony Polukhin
d99ba9ae43 fix deprecated-copy warnings 2021-12-11 12:26:43 +03:00
Glen Fernandes
adf0d87681 Update test case to not call allocator's max_size 2021-02-15 22:33:13 -05:00
Peter Dimov
50d29f7e70 Merge pull request #34 from eldiener/develop
Change __BORLANDC__ to BOOST_BORLANDC, which is defined in Boost conf…
2020-08-24 12:37:45 +03:00
Glen Fernandes
01788c32e0 Simplify allocator support using Core's allocator_access 2020-05-25 19:01:53 -04:00
Edward Diener
e77766b4a6 Change __BORLANDC__ to BOOST_BORLANDC, which is defined in Boost config for the Embarcadero non-clang-based compilers. 2020-03-30 20:35:37 -04:00
NAThompson
466b40ab55 Add unit test for cbegin/cend 2019-12-12 11:36:47 -05:00
Glen Fernandes
7be41ca8f9 Use allocator's max_size() when possible 2019-08-15 17:25:37 -04:00
Glen Fernandes
81e4b9590f Merge branch niklasfejes/insert-bug-fix into develop 2019-04-24 00:11:22 -04:00
Glen Fernandes
3d3b5bffd4 Switch to lightweight_test for unit tests and switch to non-deprecated timer 2019-04-23 17:42:53 -04:00
Glen Fernandes
c084535786 Give the unit test Dummy class a virtual destructor 2018-10-27 17:59:07 -04:00
luz.paz
187f4db314 circular_buffer: misc-typos
Found via `codespell -q 3 -L tim`
2018-09-23 15:35:26 -04:00
Glen Fernandes
ca3d6678ee In pre-C++11 use our own allocator_traits implementation
Drops dependency on Boost.Container.
2018-09-07 00:44:52 -04:00
Glen Fernandes
c0b613f8bb Fix custom allocator and custom pointer in unit test 2018-09-06 23:54:58 -04:00
Glen Fernandes
97ef4e0e19 Update tests for GCC 4.6 in C++0x mode 2018-09-06 22:41:51 -04:00
Niklas Fejes
541a0e99fb Add test for uninitialized insert bug. 2018-07-17 09:51:01 +02:00
Daniela Engert
14b50f574a Inheriting std::iterator is deprecated in c++17.
Boost's iterator.hpp is deprecated, too. Therefore get rid of all of that and replace inheritance by lifting std::iterator's members into the derived class.

Signed-off-by: Daniela Engert <dani@ngrt.de>
2017-12-28 10:44:23 +01:00
Glen Fernandes
ef8c59c4a6 Use pointer_traits.to_address instead of addressof(*p) 2017-05-29 18:39:33 -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
Alex Henrie
ce9a8538f2 Correct spelling of "suppress" 2015-01-30 15:28:08 -07:00
Antony Polukhin
d48b479c6a Use move_if_noexcept from Boost.Move 2014-08-18 12:08:23 +04:00
Glen Fernandes
689e79abd9 Correct unit test custom pointer dereference operator 2014-05-02 22:06:39 -07:00
Glen Fernandes
18306aee33 Eliminate need for do_construct helper 2014-05-02 10:26:11 -07:00
Glen Fernandes
c4b62627e7 Add C++11 allocator model support 2014-05-01 23:50:44 -07:00
Antony Polukhin
ece1277965 Fixed issues with allocators that do not return pointers, added tes case for such situations (refs #9334) 2013-12-09 11:13:34 +04:00
Antony Polukhin
584239fb3a Fix errors in circular_buffer tests(refs #7888).
[SVN r85133]
2013-07-23 16:06:38 +00:00
Antony Polukhin
a08fb95e1f Make tests of circular_buffer compile with -DBOOST_THREAD_VERSION=4
[SVN r85102]
2013-07-22 11:49:48 +00:00
Antony Polukhin
25b1edf93c Fixed my own typo (refs #7888)
[SVN r85082]
2013-07-19 14:41:41 +00:00
Antony Polukhin
1d0e7d01f9 Fix errors in circular_buffer tests(refs #7888).
[SVN r85059]
2013-07-17 14:09:32 +00: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
Paul A. Bristow
d5f31115b9 Added typical output for use with new version of docs.
[SVN r84652]
2013-06-06 13:14:18 +00:00
Gennadiy Rozental
a3d9f1266d eliminated unit_test_framework
[SVN r74733]
2011-10-05 10:00:14 +00:00
Jan Gaspar
8572432cb7 circular_buffer: constant complexity of clear method and destructor
[SVN r58619]
2010-01-01 22:23:27 +00:00
Jan Gaspar
5a30fe21d8 circular_buffer: added erase_begin and erase_end methods
[SVN r57161]
2009-10-26 21:37:01 +00:00
Troy D. Straszheim
18b8465b25 rm cmake from trunk. I'm not entirely sure this is necessary to satisfy the inspect script, but I'm not taking any chances, and it is easy to put back
[SVN r56942]
2009-10-17 02:07:38 +00:00
Troy D. Straszheim
4849492a53 Copyrights on CMakeLists.txt to keep them from clogging up the inspect
reports.  This is essentially the same commit as r55095 on the release
branch.



[SVN r55159]
2009-07-26 00:49:56 +00:00
Jan Gaspar
666ef1141f circular_buffer: fixed bounded_buffer_comparison
[SVN r53340]
2009-05-28 10:48:21 +00:00
Jan Gaspar
9e014030ee circular_buffer: #2785, #3032
[SVN r53263]
2009-05-25 22:11:02 +00:00
Jan Gaspar
1f51450f23 circular_buffer: #2538 Warning suppression in circular buffer test jamfile
[SVN r50051]
2008-12-01 10:41:06 +00:00
Michael A. Jackson
83d617f9e4 Updating CMake files to latest trunk. Added dependency information for regression tests and a few new macros for internal use.
[SVN r49627]
2008-11-07 17:02:56 +00:00
Michael A. Jackson
9ff6fa759a Continuing merge of CMake build system files into trunk with the encouragement of Doug Gregor
[SVN r49510]
2008-11-01 13:15:41 +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
6c59b9fe12 circular_buffer: bugfix #1919, #1852
[SVN r45609]
2008-05-21 15:53:50 +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