576 Commits

Author SHA1 Message Date
Ion Gaztañaga
5d8e008c50 Fix initializer_list contructor allocation count 2020-07-12 11:05:34 +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
8b8a0c05a5 Merge branch 'develop' of https://github.com/tobias-loew/container into tobias-loew-develop 2020-05-25 01:04:55 +02:00
Ion Gaztañaga
f9340421da Merge branch 'develop' of https://github.com/eldiener/container into eldiener-develop 2020-05-25 00:36:06 +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
Ion Gaztañaga
649d6d0478 Add BOOST_CONTAINER_FORCEINLINE in more places 2020-05-25 00:14:15 +02:00
Eugene Zelenko
811dc94bb4 Use BOOST_OVERRIDE to fix GCC -Wsuggest-override and Clang-tidy modernize-use-override warnings. 2020-05-08 09:28:49 -07:00
Edward Diener
cc5c59c7a5 Inline friend function definitions for exported/imported classes must become declarations and inline definitions outside the class for Embarcadero C++ clang-based compilers. This bug has been reported to Embarcadero. 2020-04-24 15:10:57 -04:00
Ion Gaztañaga
756c4cdc6a Fixed #142 ("memset called with null pointer") 2020-02-14 05:13:50 +01:00
Ion Gaztañaga
7db26b7446 Merge branch 'feature/plus_zero' of https://github.com/RobertLeahy/container into RobertLeahy-feature/plus_zero 2020-01-14 16:09:30 +01:00
Robert Leahy
d4a0917821 RandomAccessIterator + 0
Previously the iterators of boost::container::deque would assert when
zero was added to them in at least the following situations:

- The iterator was obtained by a call to boost::container::deque::begin
  and boost::container::deque::empty returns true
- The iterator was default constructed

This is inconsistent with the way in which the iterators of boost::
container::deque have behaved historically and is also inconsistent
with an understanding of iterators developed by analogy with pointers:

- Adding zero to a null pointer is valid despite the fact the null
  pointer cannot be dereferenced
- Adding zero to a pointer that is one past the end yields a pointer
  which is still one past the end and thus which has well defined
  semantics

Fixed this issue and codified the expected behavior in unit tests.
2019-12-22 20:03:57 -05:00
Robert Leahy
ac51b5b6d2 detail/value_functors.hpp: Add Namespacing
value_less and value_equal are now boost::container::value_less &
boost::container::value_equal respectively.
2019-12-22 18:10:39 -05:00
Ion Gaztañaga
27c1fea452 Fixes #136 ("List of non BOOST-prefixed macros") 2019-12-19 05:29:46 +01:00
Bo Rydberg
f7409fd6ed Missing BOOST_NORETURN for user defined functions
BOOST_NORETURN is missing for the interface of the throwning methods when BOOST_CONTAINER_USER_DEFINED_THROW_CALLBACKS is defined. Without them you can get a `'noreturn' function does return` warning from g++ at `boost/container/static_vector.hpp:46:4`.
2019-12-05 10:14:58 +01:00
Ion Gaztañaga
e3f6dc44ad Fixes #127 ("Fix docs for static_vector::max_size() and capacity()") 2019-11-14 23:36:05 +01:00
Ion Gaztañaga
79ae525967 Fixes #133 ("basic_string move constructor with allocator argument has incorrect allocator check") 2019-11-14 15:25:22 +01:00
Ion Gaztañaga
1cf19898c0 Fixes #132: flat_map::lower_bound and upper_bound have wrong/misleading docs 2019-10-19 22:55:46 +02:00
Tobias Loew
4b2ee268cc alias templates for small_flat_[multi]{set|map} using small_vector as container
alias templates for small_flat_[multi]{set|map} using small_vector as container
guarded by  #ifndef BOOST_NO_CXX11_TEMPLATE_ALIASES
2019-09-12 15:07:36 +02:00
Ion Gaztañaga
d9341ec394 Fix "count" with heterogeneous lookups in flat_map and flat_set 2019-06-22 11:41:05 +02:00
Ion Gaztañaga
0c95d4846f Fix "count" with heterogeneous lookups in flat_map and flat_set 2019-06-22 10:26:36 +02:00
Jan Eisenhauer
3319fdb0c2 Merge remote-tracking branch 'origin/develop' into patch-1 2019-06-11 11:05:29 +02:00
Jan Eisenhauer
699b1e966d With heterogeneous lookup, equal_range can result in a range with length greater than 1. 2019-06-07 11:55:15 +02:00
Jan Eisenhauer
8376286aa6 With heterogeneous lookup, equal_range can result in a range with length greater than 1. 2019-06-07 11:52:44 +02:00
Mitsuru Kariya
f25c767a2b Fix has_trivial_destructor_after_move
Most template type parameters 'Allocator' were modified their default type to void since 1.70.0.
These modifications cause has_trivial_destructor_after_move to compile error or yield wrong result.
So, fix them by changing specializations of has_trivial_destructor_after_move.
2019-06-01 22:36:54 +09:00
Ion Gaztañaga
4c348af1eb Added options for small_vector: inplace_alignment and growth_factor. Fixes #47 2019-05-09 22:15:43 +02:00
Ion Gaztañaga
1e9b4a15eb Documentation fixes for options 2019-05-09 22:14:57 +02:00
Ion Gaztañaga
5d96b11fe0 Added options to static_vector: throw_on_overflow/alignment 2019-05-09 13:25:50 +02:00
Ion Gaztañaga
e23c57337f Fixes #107 ("Alignment ignored in resource_adaptor") 2019-05-05 02:06:46 +02:00
Ion Gaztañaga
5f0ce60b39 Fixes #88 ("Implement C++17 MoveAssignable requirements for self-move assignments") 2019-04-30 18:05:50 +02:00
Ion Gaztañaga
909ccf6057 Remove memcpy null pointer warnings in some gcc versions in release mode 2019-04-30 18:04:34 +02:00
Ion Gaztañaga
4c6bea0bc7 Remove allocation overflow warnings in some gcc versions in release mode 2019-04-30 18:03:40 +02:00
Ion Gaztañaga
24e420abe9 Add block size customization options to deque. 2019-04-28 19:18:22 +02:00
Ion Gaztañaga
47226ff16f Fixes #114 ("Fix small_vector noexcept specification") 2019-04-26 23:26:10 +02:00
Andrey Semashev
570e79a677 Move small_vector_base forward-declaration to container_fwd.hpp. 2019-04-26 19:28:34 +02:00
Ion Gaztañaga
1efda13717 Fixes #116 ("MSVC + boost 1.70 compilation error when windows.h is already included (detail/thread_mutex.hpp)") 2019-04-24 23:12:25 +02:00
Ion Gaztañaga
71dfc80dda Add BOOST_CONTAINER_FORCEINLINE to stable_vector_iterator's copy constructor 2019-04-24 22:50:11 +02:00
Ion Gaztañaga
06ee4f7a39 Fixes #118 ("Non-unique inplace_set_difference used in in flat_tree_merge_unique and iterator invalidation in insert_unique") 2019-04-24 22:49:50 +02:00
Edward Catmur
b075bce22e Use real_allocator to find allocator when rebinding
After 83bb62fed3 the allocator parameter of
e.g. small_vector can be void. Use real_allocator to convert this to the
actual allocator used by the container.
2019-04-24 22:38:09 +02:00
Ion Gaztañaga
e46210e046 Fixes #117 ("flat_map/map::insert_or_assign with hint has wrong return types") 2019-04-23 17:03:09 +02:00
Adam Wulkiewicz
ae6480f2a0 Prefix aligned_storage with dtl:: (workaround for msvc 10, 11, 12).
see https://github.com/boostorg/container/issues/112
2019-04-01 19:38:27 +02:00
Ion Gaztañaga
c5869d50de Merge pull request #109 from Breakthrough/develop
Get rid of integer overflow in copy_move_algo.hpp (-fsanitize=integer).
2019-03-30 12:34:40 +01:00
Ion Gaztañaga
7efea237e1 Add forceinline to trivial cases 2019-03-30 12:32:39 +01:00
Ion Gaztañaga
47b1e4b6bf Merge branch 'warning-deprecated-copy' of https://github.com/Romain-Geissler-1A/container into Romain-Geissler-1A-warning-deprecated-copy 2019-03-30 12:23:22 +01:00
Ion Gaztañaga
0691018321 Avoid using is_convertible during allocator version detection to avoid incomplete type problems in clang compilers. has_version, has already checked the existence of the "version" typedef. 2019-03-26 22:42:10 +01:00
Romain Geissler
bde233eea5 Avoid gcc 9 deprecated copy warnings in new_allocator.hpp. 2019-03-22 10:31:37 +00:00
Brandon Castellano
3d135cc308 Get rid of integer overflow (-fsanitize=integer). 2019-03-20 14:40:19 -04:00
Ion Gaztañaga
8dfaee7434 Define nat in iterators to allow explicit instantiation of iterators. 2019-03-05 13:52:08 +01:00
Ion Gaztañaga
da21340323 Fix #105 ("Fix gcc -Wdeprecated-copy") 2019-03-05 12:15:42 +01:00
Ion Gaztañaga
2b3775985e Add BOOST_CONTAINER_FORCEINLINE 2019-03-05 12:11:43 +01:00
Ion Gaztañaga
821c5c54ff Merge branch 'exception_noreturn' of https://github.com/MarcelRaad/container into MarcelRaad-exception_noreturn 2019-02-26 23:53:41 +01:00