Ion Gaztañaga
0a62c979a7
Use boost::hash instead of boost::hash_value (properly tests #290 use case)
2024-09-30 21:06:01 +02:00
Ion Gaztañaga
bf029b6a52
- Adds compatibility tests between string and std::string_view
...
- Fixes #290 ("boost::hash<container::string> doesn't match boost::hash<std::string_view>")
2024-09-30 16:00:12 +02:00
Ion Gaztañaga
84e852f638
Fix GCC comparison for flat_map tests
2024-09-09 18:01:21 +02:00
Ion Gaztañaga
12afa8457f
Disable std::vector as underlying sequence in old GCCs as we have compilation errors due to unsupported features.
2024-09-09 17:34:53 +02:00
Ion Gaztañaga
13180fd601
Disable std::vector as underlying sequence in old GCCs as we have compilation errors due to unsupported features.
2024-09-09 13:53:24 +02:00
Ion Gaztañaga
daa81ed5bb
Expand flat_map testing coverage
2024-09-09 00:57:30 +02:00
Ion Gaztañaga
c552a23d96
Use BOOST_CXX_VERSION instead of __cplusplus
2024-09-09 00:55:18 +02:00
Ion Gaztañaga
d26e35d468
Fix typos, unneded empty lines
2024-09-09 00:42:05 +02:00
Rene Rivera
df9132c80f
Update build dependencies.
2024-07-29 21:56:22 -05:00
Rene Rivera
4b56fdee84
Sync from upstream.
2024-07-29 20:14:46 -05:00
Ion Gaztañaga
0f448277c5
Remove hash_value from string, Boost.ContainerHash hashes containers by default now.
2024-07-27 22:49:42 +02:00
Rene Rivera
fbf07feea8
Change all <source> references to <library>.
2024-07-20 19:37:36 -05:00
Rene Rivera
bc554a9ee8
Sync from upstream.
2024-07-18 09:29:21 -05:00
Ion Gaztañaga
4ea9c64316
Use algo_equal to reduce test dependencies
2024-07-15 11:50:50 +02:00
Ion Gaztañaga
8d0dc6daeb
Fixes #285 ("devector<>::push_front asserts after clear()")
2024-07-15 10:41:42 +02:00
Rene Rivera
0abc02729d
Sync from upstream.
2024-07-12 08:54:46 -05:00
Ion Gaztañaga
df03ffc8ec
Fixes #241 : flat_map should support same interface as std::map
2024-06-28 14:04:00 +02:00
Rene Rivera
cb9b667234
Sync from upstream.
2024-06-16 08:22:11 -05:00
Ion Gaztañaga
43ac22eff2
Add test for move assignable index operator
2024-06-14 12:36:36 +02:00
Ion Gaztañaga
f21c5fb723
Add missing detail/pair.hpp include
2024-06-14 12:35:23 +02:00
Rene Rivera
e62694f5f0
Sync from upstream.
2024-06-02 23:26:49 -05:00
Ion Gaztañaga
aa35950ca0
Add shrink_to_fit tests to small_vector
2024-06-03 00:14:25 +02:00
Rene Rivera
5f43b093c7
Sync from upstream.
2024-06-02 13:50:52 -05:00
Ion Gaztañaga
9da5dc49f7
Refactor move constructor and swap implementations for small_vector as in some cass unnecesary heap allocation was performed. Add tests for this.
2024-06-02 13:08:18 +02:00
Ion Gaztañaga
7ec7de921c
Remove unused or unneeded _id member
2024-05-30 23:12:52 +02:00
Rene Rivera
af24268fbb
Sync from upstream.
2024-05-30 11:21:12 -05:00
Ion Gaztañaga
f46ee4391f
Protect struct POD definition with the same macro as the test
2024-05-28 10:51:33 +02:00
Ion Gaztañaga
397fbda8be
Fixes #280 ("Several containers don't support non-movable types when move assigning")
2024-05-23 23:28:54 +02:00
Ion Gaztañaga
292bab35c6
Revert accidental commit
2024-05-21 14:11:30 +02:00
Ion Gaztañaga
59d760c08b
Document block_size option in deque_options.
2024-05-21 14:08:36 +02:00
Rene Rivera
9fea4700ca
Sync from upstream.
2024-04-20 15:33:32 -05:00
Ion Gaztañaga
978bbb113a
Clean force_ptr usage and use launder_cast
2024-04-15 12:51:15 +02:00
Ion Gaztañaga
56cc38f761
Update test_iterator_random test for vector-like containers
2024-04-15 11:57:44 +02:00
Rene Rivera
1c17646cd0
Make the library modular usable.
2024-03-11 08:31:01 -05:00
Ion Gaztañaga
6e697d7968
Rewrite default_init_test() to make harder for the compiler to optimize because we rely on UB to test memory was not initialized.
2024-01-04 00:59:38 +01:00
Ion Gaztañaga
514e88b376
Remove unneeded header
2024-01-03 02:32:41 +01:00
Ion Gaztañaga
7c74232a40
Remove Boost.StaticAsser dependency
2024-01-02 19:46:05 +01:00
Ion Gaztañaga
b14e7cedb0
libc++ up to version 14 does not support span deduction guides
2023-05-16 12:13:15 +02:00
Ion Gaztañaga
b8b089730a
Disable test for clang with libstdc++ as clang triggers an error parsing STL headers with concepts (stl_iterator.h: error: requires clause differs in template redeclaration")
2023-05-11 21:14:19 +02:00
Ion Gaztañaga
e99536c535
Remove unused variable
2023-05-11 21:13:32 +02:00
Ion Gaztañaga
eda6b8dd83
Correct testcase that was failing in GCC-12
2023-05-10 22:16:00 +02:00
Ion Gaztañaga
5cc9617487
Fixes #233 ("Can't std::move small_vector with move-only type")
2023-03-13 10:06:53 +01:00
Giuseppe D'Angelo
b694ada294
Do not memset(0) POD types
...
"POD" is the wrong type trait to determine if something can be safely
zero-filled in order to achieve zero initialization. Consider a type
like
struct POD { int POD::*ptr; };
This is a POD; its value initialization needs to value initialize the
member, and since it's a pointer, that's zero initialization, and that's
setting the pointer to null.
On Itanium, a null pointer to data member is not zero filled; it actually
has the value -1u.
Hence, zero-filling via memset(0) a POD object like the one above is
erroneous. Unfortunately there is no type trait in C++ that we can use to
know if a given datatype can be value initialized by zero-filling -- we
can check for trivial constructability, but that's a necessary
condition, not a sufficient one (POD above is also trivially
constructible).
The test is disabled on MSVC because of a compiler bug.
Fixes #238
2023-02-02 11:29:53 +01:00
Ion Gaztañaga
552688c7fc
Simplify dependencies dropping Boost.Core
2023-02-01 23:00:23 +01:00
Ion Gaztañaga
855ff7707b
Use "unsigned long long" for wchar_t sprintf_number algorithm to avoid warnings in Win64
2022-12-12 00:50:27 +01:00
Ion Gaztañaga
4bed49ee14
Reworked devector's relocation options, instead of relocation_limit<relocation_limit_XX>, it's specified by single "relocate_on_XX"
2022-10-01 23:39:28 +02:00
Ion Gaztañaga
704bf10058
Refactor advanced insertion algorithms and implement a new devector insert strategy, moving elements to the middle if there is a reasonable free capacity at the other end of the container.
2022-09-20 00:22:19 +02:00
Ion Gaztañaga
8b27fefb8e
throw_bad_alloc in expand_bwd_test_allocator::allocation_command in case of a bad request
2022-08-24 14:48:59 +02:00
Ion Gaztañaga
c49b11aec8
Disable buggy warnings using config begin/end
2022-08-24 14:42:30 +02:00
Ion Gaztañaga
8372576905
- Add asserts to detect self-move bugs.
...
- Fix return type in life_count::check functions
2022-08-24 14:32:46 +02:00