1427 Commits

Author SHA1 Message Date
Ion Gaztañaga
95538bfdc2 Update static assert test and remove unneeded <string> include. 2021-01-02 22:47:19 +01:00
Ion Gaztañaga
2bd1a6f906 Add find_end algorithm and use it in string. 2021-01-02 17:03:15 +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
5430c15ad9 Correct includes: <algorithm> is not used and <string> is needed for char_traits 2021-01-02 16:25:25 +01:00
Ion Gaztañaga
22f34b7b02 Silence warnings in tests 2021-01-02 16:24:56 +01:00
Ion Gaztañaga
d6a270e8e1 Correct "throws" part of several operations as the library by default throws its own exception types. 2021-01-02 16:24:37 +01:00
Ion Gaztañaga
ba23ac1a5a Merge branch 'palebedev-noexcept-swap' into develop 2021-01-02 01:04:11 +01:00
Ion Gaztañaga
c476113411 Merge branch 'noexcept-swap' of https://github.com/palebedev/container into palebedev-noexcept-swap 2021-01-02 00:38:31 +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
d7e99e56c6 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-01 23:50:50 +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
6c23ce8b42 Avoid including windows.h 2021-01-01 23:44:07 +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
Pavel A. Lebedev
cb1e6af53d Add conditional noexcept forwarding from free to member swap functions.
This allows std::is_nothrow_swappable{,_with} to work properly.
This only touches user-facing classes, with the following exceptions:
- map,set: only doc changes (with a drive-by missing semicolon fix),
  detail::tree which they derive from already forwards noexcept for swap.
- flat_set: only doc changes for flat_set and a change for
  detail::flat_tree, which it derives from to get swap.
- static_vector: while this adds the forwarding, member static_vector::swap
  is currently never noexcept, although it could be for noexcept-swappable
  and noexcept-move-constructible elements.
- small_vector: there is no free swap, and member swap is never noexcept,
  although it could be for noexcept-swappable and noexcept-move-
  constructible elements. Swapping small_vectors of exact same type goes
  through std::swap, which seems to get noexcept right, and small_vectors
  of different sizes use swap for boost::container::vector, which fails
  to detect when such swap could be noexcept. This patch doesn't touch
  small_vector.
- scoped_allocator: neither member nor free swap are noexcept, although
  they should be, and all other constructions/assignments/comparisons too,
  as they only forward these operations to underlying allocators, which
  are required to not throw exceptions for them. Only static_vector's
  static_storage_allocator might throw for these and it shouldn't appear
  in scoped_allocator. Unsure of the scope of changes needed or whether it
  is even worth it, this patch doesn't touch scoped_allocator.
2020-12-30 08:28:06 +03:00
Ion Gaztañaga
b17dabf47a Fixes #141 ('small_vector does not propagate no throw properties of move operation of contained type') 2020-12-30 00:19:22 +01:00
Ion Gaztañaga
f50195524f As described in #139, fixed complexity of "merge", as a O(n) inplace merge is used and explicitly state all iterators are invalidated. 2020-11-14 23:31:30 +01:00
Ion Gaztañaga
93bbf37dad Fixes #139 ("flat_map merge and iterators"). 2020-11-14 00:10:46 +01:00
Ion Gaztañaga
ae93df82ea Fixes #164 ("Compile error when using pmr::map with a std::pair; works when using a std::tuple") 2020-11-13 23:43:02 +01:00
Ion Gaztañaga
0b59dadd8b Fix PreprocessToFile property 2020-11-13 23:42:42 +01:00
Ion Gaztañaga
c98a5396c4 Erase unneeded test 2020-11-13 23:42:02 +01:00
Ion Gaztañaga
2a458005d9 Fixes #171 ("deque::clear() uses undefined behaviour") 2020-11-10 10:08:03 +01:00
Ion Gaztañaga
220ab147ad Add VS2019 project files 2020-11-05 14:30:58 +01:00
Ion Gaztañaga
6100bcfdeb Update changelog for 1.76 2020-11-05 14:30:41 +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. boost-1.75.0.beta1 boost-1.75.0 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
38ea1d7294 Update changelog with #169 2020-10-31 18:57:21 +01:00
Ion Gaztañaga
3e09b67f76 Fixes #169 ("flood of warnings building dlmalloc_ext_2_8_6.c on clang11") 2020-10-31 18:55:09 +01:00
Ion Gaztañaga
05bc4e7b9a Update changelog with #165 and #166 2020-10-25 17:26:07 +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
63073ab556 Merge pull request #168 from boostorg/pr/memory-resource-no-dllexport
Remove BOOST_CONTAINER_DECL from memory_resource
2020-10-25 15:21:49 +01:00
Peter Dimov
44c76d1187 Remove BOOST_CONTAINER_DECL from memory_resource 2020-10-24 23:51:15 +03:00
Ion Gaztañaga
525b46055e - Make sure testsuite works with "exception-handling=off" 2020-10-23 14:14:15 +02:00
Ion Gaztañaga
e490e50192 - Remove obsolete project files 2020-10-23 14:14:02 +02: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
6ca40b9e86 Use custom placement new to support -fno-exceptions 2020-10-21 22:49:25 +02:00
Ion Gaztañaga
31d7f3875f Fixes #167 ("error: the address of 'msg' will always evaluate as 'true' warning with GCC 4.4"). 2020-10-21 22:41:12 +02:00
Ion Gaztañaga
2198086257 Merge pull request #166 from giomasce-throwaway/develop
Fix encoding error in copyright headers.
2020-10-21 22:24:21 +02:00
Ion Gaztañaga
690c38bb47 Fix header-only declaration. 2020-10-20 15:34:27 +02:00
Ion Gaztañaga
c58b66c287 Add missing README 2020-10-20 15:33:02 +02:00
Giovanni Mascellani
433f98ce88 Fix encoding error in copyright headers. 2020-10-05 19:27:15 +02:00
Ion Gaztañaga
0fae2d7e90 Add Issue #163 to changelog 2020-09-07 17:12:09 +02:00
Ion Gaztañaga
3367b56048 Merge pull request #163 from tobias-loew/develop
container_rebind for small_vector with options.
2020-09-07 17:09:23 +02:00
Tobias Loew
a47234cc1c fixed container_rebind for small_vector with options
container_rebind did not compile for small_vector when options are used
2020-09-02 07:24:04 +02:00
Tobias Loew
224655becf Merge pull request #2 from boostorg/develop
Merged from origin
2020-09-02 07:19:22 +02:00
Ion Gaztañaga
3da7877dc0 Fixes #158 (".bak file in git") 2020-08-31 22:23:25 +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