1427 Commits

Author SHA1 Message Date
Ion Gaztañaga
70f756960e Update hash bench projects 2023-01-23 14:22:41 +01:00
Ion Gaztañaga
9e3b3295eb Add _CRT_SECURE_NO_WARNINGS 2023-01-23 14:22:23 +01:00
Ion Gaztañaga
b3fd985101 Boost.Config is not needed 2023-01-23 14:01:53 +01:00
Ion Gaztañaga
43a9e87d2f Remove unneeded project 2023-01-19 00:04:54 +01:00
Ion Gaztañaga
0aa832cf18 Disable "-Warray-bounds" for GCC12 due to false positives 2023-01-18 23:55:44 +01:00
Ion Gaztañaga
5e31afe60f Remove unneeded file 2023-01-18 23:51:29 +01:00
Ion Gaztañaga
af381d82a0 Avoid dependency on boost::ignore_unused 2023-01-18 23:50:11 +01:00
Ion Gaztañaga
cfa3dda60e Add BOOST_CONTAINER_FORCEINLINE to trivial functions 2023-01-18 23:46:30 +01:00
Ion Gaztañaga
2e7983f997 Add missing boost/assert or static_assert include 2023-01-18 23:45:53 +01:00
Ion Gaztañaga
4e474cbd01 Remove experimental hash_xxx forward declarations 2022-12-12 01:00:30 +01:00
Ion Gaztañaga
2b8e3cfafe aligned_storage is no longer used in the implementation, so remove the header include. 2022-12-12 00:59:59 +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
efde619997 Use remove_const to correctly extract key_type from value_type, as the typical case is pair<const KeyType, MappedType> 2022-12-12 00:43:49 +01:00
Ion Gaztañaga
d9ecdd8f67 Add BOOST_CONTAINER_FORCEINLINE in trivial functions 2022-12-12 00:42:14 +01:00
Ion Gaztañaga
2f70cddf55 Update changelog with #232 2022-12-11 23:58:08 +01:00
Ion Gaztañaga
f5df1cc5c7 Remove unmaintained travis file 2022-12-11 23:57:41 +01:00
Ion Gaztañaga
3872eaa9d7 Merge pull request #228 from strager/fix-dox
Fix typo in memory_resource docs
2022-12-11 20:41:41 +01:00
Ion Gaztañaga
e9b09a5ee7 Use direct-initialization since copy-initialization invokes the copy ctor in older standard versions 2022-12-11 20:36:28 +01:00
Ion Gaztañaga
5e76b844a2 Merge pull request #232 from georgthegreat/patch-1
Fix using pmr::polymorphic_allocator in pre-main
2022-12-11 18:45:37 +01:00
Ion Gaztañaga
ef3c4f41ce Merge pull request #235 from lrineau/patch-1
Fix a doc typo in flat_set.hpp
2022-11-17 13:03:10 +01:00
Laurent Rineau
d7b877f924 Fix a doc typo in flat_set.hpp 2022-11-17 11:31:42 +01:00
Ion Gaztañaga
ae5572dbb4 Reduce -j3 to -j2 to avoid spurious failures. boost-1.81.0 boost-1.81.0.beta1 2022-10-13 12:34:38 +02:00
Ion Gaztañaga
ca49d4ce64 Remove gcc on windows, already tested on linux. 2022-10-12 00:48:30 +02:00
Ion Gaztañaga
5c7ddf0705 Remove gcc on windows, already tested on linux. 2022-10-11 22:49:09 +02: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
4e4d2afef2 Remove "bitwise OR in bool" warning 2022-10-01 23:30:05 +02:00
Yuriy Chernyshov
488500ed85 Fix using pmr::polymorphic_allocator in pre-main
A similar problems for the above (i. e. non-atomic) branch was addressed in #148, yet the default C++11 branch causes segault with the following stacktrace:

```
(gdb) bt
#0  0x000000000e1c3d28 in boost::container::pmr::memory_resource::allocate (this=0x0, bytes=92, alignment=4)
    at boost/container/include/boost/container/pmr/memory_resource.hpp:48
#1  0x000000000e2e9e59 in boost::container::pmr::polymorphic_allocator<float>::allocate (this=0x7fffffffd148, n=23)
    at boost/container/include/boost/container/pmr/polymorphic_allocator.hpp:92
#2  0x000000000e2e9cdd in std::__y1::allocator_traits<boost::container::pmr::polymorphic_allocator<float> >::allocate (__a=..., __n=23)
    at libcxx/include/__memory/allocator_traits.h:262
#3  0x000000000e2e9b13 in std::__y1::vector<float, boost::container::pmr::polymorphic_allocator<float> >::__vallocate (this=0x7fffffffd130, __n=23)
    at libcxx/include/vector:958
#4  0x000000000e33c591 in std::__y1::vector<float, boost::container::pmr::polymorphic_allocator<float> >::vector (this=0x7fffffffd130, __n=23)
    at libcxx/include/vector:1106
```
2022-10-01 11:24:42 +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
49a028bfe9 Add missing iterator_to_raw_pointer include 2022-08-24 14:47:51 +02:00
Ion Gaztañaga
7dd35c26d5 - Add null_scoped_destructor
- Enable null_scoped_destructor_n and scoped_destructor_n to work with non-raw pointers
2022-08-24 14:47:30 +02:00
Ion Gaztañaga
99091420ae Add experimental forward declaration of hash containers 2022-08-24 14:43:39 +02:00
Ion Gaztañaga
c49b11aec8 Disable buggy warnings using config begin/end 2022-08-24 14:42:30 +02:00
Ion Gaztañaga
f72b1deb1e Add test headers to the project filter 2022-08-24 14:41:59 +02:00
Ion Gaztañaga
7b858d5601 Add reserve variant
Add "emplace back" and "emplace near end"
2022-08-24 14:40:47 +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
Ion Gaztañaga
d98c21fc33 Fix potentially not-initialized variable warning 2022-08-24 14:31:28 +02:00
Ion Gaztañaga
5c03f64f9b Disable forceinline with MinGw, as it has bugs with forceinline 2022-08-24 14:30:04 +02:00
Ion Gaztañaga
4622a57994 Add make_iterator_advance from Intrusive 2022-08-24 14:29:16 +02:00
Ion Gaztañaga
97b122c951 Add devector-based flat_set/map to bench 2022-08-24 14:28:50 +02:00
Ion Gaztañaga
f92f8adafa Disable "-Wsign-conversion" in older GCCs to avoid false positives 2022-08-24 14:27:47 +02:00
Ion Gaztañaga
3be89a2910 Disable "-Wmaybe-uninitialized" for false positives in the core section 2022-08-24 14:26:52 +02:00
Ion Gaztañaga
c63fc4e17f Use logical OR instead of bitwise OR in check 2022-08-24 14:26:12 +02:00
Ion Gaztañaga
51c1d202cd Add missing iterator_to_raw_pointer include 2022-08-24 14:22:47 +02:00
Matthew "strager" Glazar
cae4b7cbc0 Fix typo in memory_resource docs 2022-08-17 02:11:11 -07:00
Ion Gaztañaga
71a162dafd Delete outdated windows server 2016 runner 2022-08-02 23:58:43 +02:00
Ion Gaztañaga
725d95b314 Disable -Wstrict-aliasing as GCC-7 incorrectly flags it in release mode (aligned storage holds the type we want). boost-1.80.0 2022-08-01 11:29:48 +02:00
Ion Gaztañaga
66d044cf66 Disable Clang in 2a mode with libstdc++ becaus throws compilation errors in the standard library:
"/usr/bin/../lib/gcc/x86_64-linux-gnu/10/../../../../include/c++/10/bits/stl_iterator.h:1923:5: error: requires clause differs in template redeclaration

(...)

/usr/bin/../lib/gcc/x86_64-linux-gnu/10/../../../../include/c++/10/bits/stl_iterator.h:1619:14: note: previous template declaration is here"
2022-07-25 11:35:05 +02:00
Ion Gaztañaga
231dd48e70 Fixes #211 ("Use atomics for pmr get/set default resource") 2022-07-25 01:28:58 +02:00
Ion Gaztañaga
b8c59d595c Fixes #210: ("Use sized delete in boost::container::new_allocator...") 2022-07-16 20:55:42 +02:00