Commit Graph

973 Commits

Author SHA1 Message Date
joaquintides
e3818afd45 test interprocess concurrency (#258)
* added cfoa_interprocess_concurrency_tests

* avoided C++14 digit separators

* stopped using exit codes to pass numerical info to parent

* Reorder includes to make msvc-14.0 happy

* made cumulative_stats interprocess concurrency safe

* disabled interprocess_concurrency_tests for Clang 3.5-8
(Boost.Process compile error)

* made test names shorter for the benefit of MINGW32

---------

Co-authored-by: Peter Dimov <pdimov@gmail.com>
2024-06-22 09:13:30 +02:00
Braden Ganetsky
9995c9beb0 Fix 'invalid argument' to boost::interprocess::shared_memory_object 2024-06-06 23:05:43 -05:00
joaquintides
f77bdb9b67 updated is_avalanching trait protocol 2024-05-29 19:51:32 +02:00
joaquintides
28fc689011 avoided shorten-64-to-32 and sign-conversion warnings 2024-05-05 18:30:42 +02:00
joaquintides
22d8cca03b added stats to bulk visitation 2024-05-05 17:56:03 +02:00
joaquintides
223f64752d implemented proper stats handling on concurrent<->unordered move construction 2024-05-03 18:04:21 +02:00
joaquintides
37451ecc94 relaxed checks for non-empty unsuccessful lookup stats 2024-05-03 13:07:09 +02:00
joaquintides
8452b30608 implemented proper stats handling on move assignment 2024-05-02 20:41:27 +02:00
joaquintides
d121c91c88 avoided shadowed declaration warning 2024-05-02 12:48:48 +02:00
joaquintides
6212f2642c avoided spurious check of deleted copy ctor 2024-05-02 11:15:29 +02:00
joaquintides
d5605671bd avoided shadowed local variable warnings 2024-05-02 10:22:14 +02:00
joaquintides
45c51840f7 avoided shadowed declaration warning 2024-05-02 09:52:58 +02:00
joaquintides
90ca4fb07e avoided float-equal warnings 2024-05-02 09:49:11 +02:00
joaquintides
83ab4b4b9f avoided unused-local-type warning 2024-05-01 21:32:49 +02:00
joaquintides
04006547a2 editorial 2024-05-01 20:57:02 +02:00
joaquintides
7b0e4da61e editorial 2024-05-01 20:56:05 +02:00
joaquintides
0c1b719945 added missing typedefs 2024-05-01 20:52:36 +02:00
joaquintides
3b2eae07d4 avoided name hiding warning 2024-05-01 20:28:12 +02:00
joaquintides
b0c480839b renamed test file 2024-05-01 18:27:45 +02:00
joaquintides
6215406c02 added tests for stats feature 2024-05-01 18:15:14 +02:00
Braden Ganetsky
553ce263fa Fix pmr tests on macos-13 2024-03-24 12:22:45 -05:00
Braden Ganetsky
e63853d87d Fix fca allocator swapping, and test that pmr allocator swap compiles 2024-03-24 12:22:45 -05:00
Braden Ganetsky
e816ba511c Write pmr tests to check for no allocator propagation 2024-03-24 12:22:45 -05:00
Braden Ganetsky
82ba55e4a4 Write test pmr_emplace_erase to check basic functionality with pmr allocators 2024-03-24 12:22:44 -05:00
Braden Ganetsky
626db552ab Write pmr memory resource 'counted_new_delete_resource' 2024-03-24 10:47:02 -05:00
joaquintides
ccf9a76ebe Fixed #237 2024-03-15 17:30:10 +01:00
joaquintides
15cfef6967 Fixed support for allocators with explicit copy constructors (#234)
* added tests for explicit allocators

* made explicit_alloc_ctor_tests work
by adhering to the principle that classes templated with Allocator should accept exactly Allocator objects

* removed TMP machinery older compilers choke about

* initialized variables

* updated release notes

* fixed PR number
2024-02-17 18:58:48 +01:00
Braden Ganetsky
1d25c1c053 Update copyright notices 2024-02-11 11:22:28 -06:00
Braden Ganetsky
260418e4ee Fix cfoa tests 2024-02-11 11:22:28 -06:00
Braden Ganetsky
bd5c9fc740 Add cfoa tests for emplace(k,v) 2024-02-11 11:22:27 -06:00
Braden Ganetsky
f411968ffd Add tests for immovable key_type 2024-02-11 11:22:26 -06:00
Braden Ganetsky
be7c63e1bf Add foa and fca tests for emplace(k,v) 2024-02-10 11:10:28 -06:00
Braden Ganetsky
67c5cdb3a6 Optimize emplace() for exactly a value_type or init_type argument (#227)
* Add structs to count special member functions

* Add failing emplace tests, that will pass after making the optimization

* Optimize emplace() to not allocate when we already have a value_type or init_type

* Fix newly failing cfoa tests
2023-12-31 18:56:14 +01:00
joaquintides
75a94781d5 Fix/b2 5.0.0 (#228)
updated CI after b2 5.0.0 new requirements on the compiler used for self-build
2023-12-30 22:11:11 +01:00
joaquintides
76185abe80 extended workaround to GCC 4.9 2023-12-30 19:41:13 +01:00
Peter Dimov
74ca1b0e74 Update test/CMakeLists.txt 2023-11-30 17:54:53 +02:00
joaquintides
7fd94b9df7 Fix/bucket iterator indirection operator (#220 rewrite) (#221)
* Add tests for member of pointer operator for bucket iterators

* Fix erroneous conversion from node* to value_type* in bucket iterators

Originally caughy by vslashg  from PR https://github.com/boostorg/unordered/pull/220

* Update change log

* Update GHA config to use containers in C++20 builds for clang-14 as it's incompatible with libstdc++-13

* fixed Python installation problem

* tried variation of former fix

* tried another variation of former fix

* tried yet another variation

* editorial

---------

Co-authored-by: Christian Mazakas <christian.mazakas@gmail.com>
2023-11-17 08:51:40 +01:00
joaquintides
42df4f2749 removed lifting of swap and ==/!= operations 2023-10-22 20:16:05 +02:00
joaquintides
8ee48fe909 Feature/bulk visit (#217) 2023-10-11 12:50:28 +02:00
joaquintides
ef0b3a0cd8 fixed #201 2023-10-04 17:38:33 +02:00
Christian Mazakas
c37d9a3bf1 Clean up tests to properly use boost::unordered::piecewise_construct and ensure it's a humble alias for its std counterpart 2023-09-29 08:29:06 -07:00
Christian Mazakas
20559cbe5c Remove extraneous whitespace introduced by a clang-format bug 2023-09-29 07:44:52 -07:00
Christian Mazakas
630031706b Remove project test requirements and remove problematic CI entries 2023-09-28 09:51:47 -07:00
Christian Mazakas
b482890453 Update testing requirements to re-enable gcc-4.8 and above 2023-09-28 08:27:12 -07:00
Christian Mazakas
087f2052fc Update include paths to use ContainerHash instead of Functional for hash 2023-09-27 13:03:15 -07:00
Christian Mazakas
7aac692162 Replace all usages of boost::addressof with their std counterpart 2023-09-27 13:03:15 -07:00
Christian Mazakas
b4884b7201 Relocate piecewise_construct to impl file, remove unnecessary fwd header 2023-09-27 12:21:15 -07:00
Christian Mazakas
6c97eabbb3 Refactor prime_fmod_size policy to use static members in lieu of namespace-scope ones 2023-09-27 11:44:45 -07:00
Christian Mazakas
9b1ec6cbce Reinstate boost::unordered::piecewise_construct
Maintain backwards-compatibility for users instead of forcing them to change to `std::`
2023-09-27 11:44:45 -07:00
Christian Mazakas
423eb08f00 Work around bugs in gcc's analysis
Under `-m32 -O3` builds, it seems like gcc gets confused by the usage of malloc and calloc so we opt into the C++ versions, operator new and delete
2023-09-27 11:44:45 -07:00