Commit Graph
663 Commits
Author SHA1 Message Date
Ion Gaztañaga 78d1a30e65 Fixes #261 ('"End iterators are not dereferencable") 2024-09-30 23:18:41 +02:00
Ion Gaztañaga 18a86594b6 Fix some Wshadow warnings for old GCCs 2024-09-30 15:59:00 +02:00
Ion Gaztañaga 4cc14fc42c Propagate the potentially "void" allocator to the underlying vector to shorten symbol name lengths. 2024-09-11 21:22:54 +02:00
Ion Gaztañaga 49440c3525 Add compile-time check to make sure allocator_type::value_type and container's value_type are the same type. 2024-09-10 23:50:24 +02:00
Ion Gaztañaga 72a6b1e00e Fixes #288 ("Compile error when using flat_map::extract_sequence with small_vector") 2024-09-09 10:54:14 +02:00
Ion Gaztañaga 69136f9967 Optimize merge and sort with the utility unused_storage 2024-09-09 00:40:54 +02:00
Ion Gaztañaga bd8c8b0327 Add unused_storage optimization function 2024-09-09 00:37:47 +02:00
Ion Gaztañaga 48acf451b8 Fix incorrect invariant check for iterators. We don't have a proper comparator for them, we need to wait until they are inserted in the sequence before checking invariants. 2024-09-08 01:51:16 +02:00
Ion Gaztañaga ceadad2e6e Avoid rebinding the allocator o container if std::pair is movable (impl_pairt_ is the same type as std_pair_t) 2024-09-08 00:49:18 +02:00
Ion Gaztañaga 419b1e9f09 Fix merge[_unique] handling of input iterators. It was not handled at compile time, leading to compilation errors. 2024-09-08 00:47:43 +02:00
Ion Gaztañaga 19a2f5ea95 Fix WConversion warning for DetectMember_* 2024-08-22 11:42:29 +02: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
Ion Gaztañaga 8d0dc6daeb Fixes #285 ("devector<>::push_front asserts after clear()") 2024-07-15 10:41:42 +02:00
Ion Gaztañaga ebf698f8a3 Adjust BOOST_CONTAINER_GCC_COMPATIBLE_HAS_DIAGNOSTIC_IGNORED since clang claims to be GCC 4.2 but supports this feature. 2024-07-01 01:01:02 +02:00
Ion Gaztañaga bdc734f1e0 Avoid noisy warnings when instantiating BOOST_INTRUSIVE_HAS_MEMBER_FUNCTION_CALLABLE_WITH 2024-06-30 23:06:08 +02:00
Ion Gaztañaga df03ffc8ec Fixes #241: flat_map should support same interface as std::map 2024-06-28 14:04:00 +02:00
Ion Gaztañaga a070ce2325 Fixes #245 ("flat_tree::insert ordered range doesn't assert sorting") 2024-06-14 13:38:50 +02:00
Ion Gaztañaga 2d097fe45c Roll back and use dtl::value_init to maximize compatibility between std versions 2024-06-14 12:37:12 +02:00
Ion Gaztañaga d1d8c43c2d Add detail/pair header 2024-06-13 22:46:37 +02:00
Ion Gaztañaga acd4f41eda Remove unneeded header 2024-06-13 22:46:23 +02:00
Ion Gaztañaga 7c9fb0d764 Include pair.hpp since dtl::pair is used 2024-06-13 14:36:18 +02:00
Ion Gaztañaga a331d3387f Include detail/is_pair.hpp since forward declares boost::tuples::tuple 2024-06-13 14:32:56 +02:00
Ion Gaztañaga a4c4c3b319 Define and use BOOST_CONTAINER_CONSTANT_VAR to support BOOST_INLINE_CONSTEXPR and static const global variables. 2024-06-06 14:39:49 +02:00
Ion Gaztañaga 0977e6b1d4 Use BOOST_STATIC_CONSTEXPR where applicable 2024-06-06 00:08:00 +02:00
Ion Gaztañaga 13be16a0c8 Don't use default-constructed KeyNodeCompare to support stateful comparison objects 2024-06-05 11:20:11 +02:00
Ion Gaztañaga 24c978b550 Clarify clear() does not alter capacith() 2024-06-04 14:00:31 +02:00
Ion Gaztañaga dad179ddf5 Fix incorrect memory free order in prot_shrink_to_fit_small, fixing a potential memory leak 2024-06-03 00:14:00 +02:00
Ion Gaztañaga c7702d20eb Reformat small inline functions 2024-06-03 00:12:56 +02:00
Ion Gaztañaga aa473160df Remove unused make_unique.hpp 2024-06-03 00:12:09 +02: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 4142050048 Disable Wstringop-xxx false positives also in newer GCCs 2024-06-02 13:06:33 +02:00
Ion Gaztañaga 0219333fa1 Disable strict aliasing for C++03 implementations as type-punning is used to make value_type movable. 2024-05-30 23:07:57 +02:00
Ion Gaztañaga 2f0155224b Disable Wstringop-overflow also in GCC 11 2024-05-27 22:50:47 +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 c09c9b5804 Avoid using transform iterator as null pointer dereferences might happen 2024-05-23 22:53:14 +02:00
Ion Gaztañaga 8d17978748 Document block_size option in deque_options 2024-05-21 14:16:18 +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
Ion Gaztañaga 20ad12f20e Remove UB in flat_map implementation when the implementation has a movable std::pair 2024-04-28 23:29:59 +02:00
Ion Gaztañaga 429024ca4e Add experimental (macro protected) support for lighter iterators 2024-04-16 11:36:04 +02:00
Ion Gaztañaga 03abe8c02c Return start() pointer by value to limit aliasing 2024-04-15 12:53:41 +02:00
Ion Gaztañaga 978bbb113a Clean force_ptr usage and use launder_cast 2024-04-15 12:51:15 +02:00
Ion Gaztañaga 3c8c087eb7 Change internal_storage() implementation to avoid UBSan errors when N is zero. 2024-01-03 02:34:58 +01:00
Ion Gaztañaga 7c74232a40 Remove Boost.StaticAsser dependency 2024-01-02 19:46:05 +01:00
Ion Gaztañaga 4fcd7aea61 Workarounds to GCC-12 false positive warning 2023-05-10 22:14:25 +02:00
Ion Gaztañaga 1a4a205ea6 Don't use BOOST_CONTAINER_FORCEINLINE extensively, due to potential code bloat 2023-05-10 22:09:01 +02:00
Ion Gaztañaga 546ee5c06e Fixes #243 ("rebind makes build fail in boost::small_vector with libstdc++-13 and later ") 2023-04-20 23:35:48 +02:00
Ion Gaztañaga 8ae15965ea Fixes #242 ("Issue with string::rfind") 2023-04-18 22:50:30 +02:00
Ion Gaztañaga 51f6cf69fc Disable forceinline for clang compilers, see https://lists.boost.org/boost-users/2023/04/91445.php and https://github.com/llvm/llvm-project/issues/62202 2023-04-18 22:08:26 +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