252 Commits

Author SHA1 Message Date
Ion Gaztañaga
34cd414280 Fixes #221 ("flat_set and friends should offer a const sequence_type& sequence() const method (...)") 2022-06-25 20:29:16 +02:00
Ion Gaztañaga
9182c07939 Add missing common_iterator_test from previous commit. 2022-01-12 01:40:42 +01:00
Ion Gaztañaga
2554e9671d Include <memory> as std::allocator is used 2022-01-04 16:43:20 +01:00
Ion Gaztañaga
8bb53bbed2 Make test_span_conversion() test a bit more clear 2022-01-04 16:42:43 +01:00
Ion Gaztañaga
15d61d6d26 Refactor node implemenations from 3 (slist_node, list_node and tree_node) to a single base_node:
- To avoid unneeded includes, is_pair is factored out from pair.hpp implementation
- Fixed bug where value_types inside nodes were not allocator-ware destructed.
- Changed scoped utilities to handle new clases
2022-01-04 00:41:34 +01:00
Ion Gaztañaga
53a020f1f1 Use BOOST_STATIC_ASSERT_MSG for constant checks 2022-01-04 00:36:36 +01:00
Ion Gaztañaga
fc8d0ff35c Remove unneeded "typename" 2021-12-31 01:14:06 +01:00
Ion Gaztañaga
2da6088d0c Improve test directly using transform_iterator and several containers 2021-12-31 01:03:11 +01:00
Ion Gaztañaga
0eb901ee05 Fix wrongly committed boost_iterator_comp_test version 2021-12-30 23:27:40 +01:00
Ion Gaztañaga
3750b66b38 Add minimal test to make sure boost iterator-like iterators are compatible with Boost.Container. Example taken from Trac 12698 (https://svn.boost.org/trac10/ticket/12698) 2021-12-30 23:16:26 +01:00
Ion Gaztañaga
6b29fbf90d Add overload for unsigned long long so that x64 builds work 2021-12-30 12:33:22 +01:00
Ion Gaztañaga
d691471816 Improve aliasing issues in C++03 that could lead to release tests failing in some tests 2021-12-29 23:44:18 +01:00
Ion Gaztañaga
6e2032717c Delete test causing false positive warning in GCC 11 2021-12-29 17:30:53 +01:00
Ion Gaztañaga
3f76f9fdf7 Fixes #206 ("operator-> on static_vector::iterator causes cast alignment warning") 2021-12-28 15:17:15 +01:00
Ion Gaztañaga
ea3521bf14 Fix -Wshadow warnings 2021-12-27 14:40:29 +01:00
Ion Gaztañaga
40735223d5 Added BOOST_OVERRIDE according to -Wsuggest-override 2021-12-27 01:01:10 +01:00
Ion Gaztañaga
f6a03fd3f2 Fixes #197 ("small_vector::swap causes spurious allocations and suboptimal performance") 2021-11-01 00:19:16 +01:00
Ion Gaztañaga
7f35ef420e Support Clang's -Wconversion -Wfloat-conversion -Wsign-conversion with -Werror 2021-10-20 00:18:05 +02:00
Ion Gaztañaga
dad2cb2d02 Support GCC's -Wconversion -Wfloat-conversion -Warith-conversion -Wsign-conversion warnings. 2021-10-16 15:57:47 +02:00
Ion Gaztañaga
ad7167c564 Fixes #150 ("Use std::contiguous_iterator_tag if available"), tested in MSVC and GCC. 2021-04-21 00:43:31 +02:00
Ion Gaztañaga
a5cc4f1eef Fix find/replace bug in test name 2021-04-19 21:53:54 +02:00
Ion Gaztañaga
dc4cf460a7 Add missing <functional> for std::less 2021-01-15 18:05:33 +01:00
Ion Gaztañaga
95538bfdc2 Update static assert test and remove unneeded <string> include. 2021-01-02 22:47:19 +01:00
Ion Gaztañaga
150569375f <boost/static_string.hpp> include is not needed. 2021-01-02 17:02:47 +01:00
Ion Gaztañaga
22f34b7b02 Silence warnings in tests 2021-01-02 16:24:56 +01:00
Ion Gaztañaga
0153ee1920 Rewrite [flat_]map/set insert overloads to be more standard compliant. Fixes #102 ("flat_map::insert ambiguous with initializer list & pairs that need to convert"). 2021-01-02 00:37:44 +01:00
Ion Gaztañaga
621cd3a0ab Avoid using inheriting constructors and initializer_list::cbegin/cend to be nicer with older compilers 2021-01-01 23:44:56 +01:00
Ion Gaztañaga
80697e7c0f #pragma GCC diagnostic push is available from GCC 4.6, not from GCC 4.5 2021-01-01 23:43:44 +01:00
Ion Gaztañaga
d5a830434e - Replaced default standard exception classes with Boost.Container own classes, reducing considerably the included files overhead 2020-12-30 15:07:32 +01:00
Ion Gaztañaga
c98a5396c4 Erase unneeded test 2020-11-13 23:42:02 +01:00
Ion Gaztañaga
0a0ad0009e Add support for [[nodiscard]]:
- Decorate container and allocator functions.
- Make sure to disable warnings in tests
- Update doxygen documentation to support it
2020-11-05 14:24:35 +01:00
Ion Gaztañaga
8a2444201a Avoid GCC's overflow warnings for operator new. 2020-11-03 10:59:19 +01:00
Ion Gaztañaga
99d56db196 Update changelog with #162. 2020-11-02 15:08:19 +01:00
Ion Gaztañaga
d4c8bd70ea Fixes #152 ("Tree-based containers have troubles with move-only types") 2020-10-31 23:09:52 +01:00
Ion Gaztañaga
3cd08df6fc Avoid including <boost/container/detail/config_begin.hpp> in tests to catch all possible warnings. 2020-10-25 17:25:39 +01:00
Ion Gaztañaga
4bebeb2353 Make sure test suite/examples/bench compile with exceptions disabled (exception-handling=off) 2020-10-22 01:12:59 +02:00
Ion Gaztañaga
03f030af69 Fixes #156: ("Compile error with vector") and remove warnings about precission loss due to integer narrowing 2020-10-22 01:10:07 +02:00
Ion Gaztañaga
cdd6d9ad8a Fixes #160 ("Usage of uses_allocator needs a remove_cvref_t") 2020-08-31 22:21:41 +02:00
Ion Gaztañaga
1ac7339ff4 Add test to erase the last element 2020-08-31 22:21:02 +02:00
Ion Gaztañaga
0b297019ec Fixes #161: ("polymorphic_allocator(memory_resource*) non-standard extension causes headache") 2020-08-31 13:37:11 +02:00
Ion Gaztañaga
ebcd0222b4 Integrate and adapt "devector's", from Thaler Benedek's implementation. 2020-08-10 00:16:58 +02:00
Ion Gaztañaga
f99da8551b Use boost::container::vector/list instead of std 2020-08-09 23:24:13 +02:00
Ion Gaztañaga
0143caf985 Explicitly instantiate "stored_size" option to catch conversion warnings 2020-08-09 23:23:56 +02:00
Ion Gaztañaga
52aae65fcd Fix unreachable code warning 2020-08-09 23:23:26 +02:00
Ion Gaztañaga
b946b779e6 Remove unused include 2020-08-09 23:23:13 +02:00
Ion Gaztañaga
974e8e641a Fix "-Wdeprecated-copy" warnings 2020-08-09 23:21:46 +02:00
Ion Gaztañaga
2d9d28b81e Fixed #128 ("moved from small_vector and static_vector calls destructor on elements in static part") 2020-07-12 13:48:38 +02:00
Ion Gaztañaga
4f37a023b0 Enable user warnings in tests to be able to fix them. 2020-07-12 11:06:01 +02:00
Ion Gaztañaga
80d742f860 Added C++03 portable aliases and tests. Fixes #129 ("Alias templates for small_flat_[multi]{set|map} using small_vector as container") 2020-05-25 01:50:23 +02:00
Ion Gaztañaga
52b9ae0e68 Fixes #145 ("Allocations not handled correctly in some cases of vector move with unequal allocators") 2020-05-25 00:35:07 +02:00