Commit Graph
286 Commits
Author SHA1 Message Date
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
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 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 d4c8bd70ea Fixes #152 ("Tree-based containers have troubles with move-only types") 2020-10-31 23:09:52 +01: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
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
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 438813726b Add BOOST_CONTAINER_FORCEINLINE to trivial operations. 2020-08-31 13:36:46 +02:00
Lucas Camolezi 2f9f3831ef Add missing include
Allow this header file to be built standalone, in a clang C++ modules context.
2020-08-25 15:15:59 -03:00
Ion Gaztañaga 5d100cb45f Add BOOST_CONTAINER_FORCEINLINE to trivial functions 2020-08-11 23:50:08 +02:00
Ion Gaztañaga c2a4ed70d9 Avoid unsigned underflow, legal but flagged as suspicious by several tools. 2020-08-11 23:49:48 +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 e02b5c9bde Add "back_free_capacity" utility 2020-08-09 23:54:52 +02:00
Ion Gaztañaga c48edfe7bd Reenabled the following warnings in MSVC to detect errors in the implementation:
4244 // possible loss of data
4267 // conversion from "X" to "Y", possible loss of data
4702 // unreachable code
2020-08-09 23:49:15 +02:00
Ion Gaztañaga 978f1c426d Generalize "clamp_by_stored_size_type" to be able to reuse it in other containers 2020-08-09 23:47:41 +02:00
Ion Gaztañaga cc51aa2e49 Add BOOST_CONTAINER_FORCEINLINE to trivial functions and add is_single_value_proxy attribute to single value proxies. This trait can be used by insertion functions to optimize operations at compile time. 2020-08-09 23:45:13 +02:00
Ion Gaztañaga c08ead7f4b Add BOOST_CONTAINER_DISABLE_NOINLINE 2020-08-09 23:27:12 +02:00
Ion Gaztañaga e0c7cb99b3 Fix possible unsigned underflow warnings. 2020-08-09 23:26:34 +02:00
Ion Gaztañaga 716ade8e56 Add BOOST_CONTAINER_FORCEINLINE to destroyers' trivial functions 2020-08-09 23:25:31 +02:00
Ion Gaztañaga 98b59db5fd Fixes #149: ("InitializeCriticalSectionEx returns "BOOL" (int)") 2020-07-12 12:44:31 +02:00
Ion Gaztañaga 649d6d0478 Add BOOST_CONTAINER_FORCEINLINE in more places 2020-05-25 00:14:15 +02:00
Ion Gaztañaga 756c4cdc6a Fixed #142 ("memset called with null pointer") 2020-02-14 05:13:50 +01: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
Ion Gaztañaga 0c95d4846f Fix "count" with heterogeneous lookups in flat_map and flat_set 2019-06-22 10:26:36 +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 5d96b11fe0 Added options to static_vector: throw_on_overflow/alignment 2019-05-09 13:25:50 +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 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 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
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 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
Brandon Castellano 3d135cc308 Get rid of integer overflow (-fsanitize=integer). 2019-03-20 14:40:19 -04: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 b5c25ea058 Use boost::container placement new to avoid ambiguities in overload resolution. 2019-01-31 00:27:30 +01:00
Brandon Castellano 38b854b296 Restore indentation. 2019-01-28 19:59:59 -05:00
Brandon Castellano 33423d4301 Fix compilation issues in detail/flat_tree.hpp. 2019-01-28 15:07:21 -05:00
Ion Gaztañaga 83bb62fed3 Default allocator parameter changed form new_alloator<T> to void to reduce symbol lenghts 2019-01-10 22:54:58 +01:00
Ion Gaztañaga 80789255b9 Fix typo _LIBCPP_VERSION -> _LIBCPP_DEPRECATED_ABI_DISABLE_PAIR_TRIVIAL_COPY_CTOR 2019-01-07 00:56:44 +01:00
Ion Gaztañaga 2b5197a5cb Fixes Issue #97 2019-01-07 00:38:15 +01:00
Ion Gaztañaga 2f314f5ff9 Explicitly state return type as movelib's enable_if has changed defaults to be more sfinae-friendly 2019-01-03 03:31:40 +01:00