Ion Gaztañaga
4122e722a4
Added constant static_vector<>/small_vector::static_capacity to use the configured capacity in constant expressions.
2016-08-03 00:18:11 +02:00
Ion Gaztañaga
649aba461e
Fixes Trac #12296 ("boost::container::{deque,string} combine for a memory leak"). The use of trivial_destructor_after_move was incorrect in several contexts.
2016-08-02 00:49:38 +02:00
Ion Gaztañaga
225e2da77e
Revised noexcept expressions of default and move constructors in all containers.
2016-08-01 23:49:51 +02:00
Ion Gaztañaga
b6d3906895
Use value-initialized pointers when null is required, as conversion from literal 0 is not guaranteed in smart pointers.
2016-07-31 23:16:08 +02:00
Pavel A. Lebedev
0b75df9920
Allow reuse of buffer in reserve with v2 allocator
...
allocation_command uses expand_{fwd,bwd} flags and its result is later compared with the old pointer, but the old pointer was not passed for reuse.
2016-07-16 18:52:10 +03:00
Ion Gaztañaga
2a04243de7
Add safety assertion
2016-06-25 11:05:07 +02:00
Ion Gaztañaga
153fd7f474
Add more is_class, is_class_or_union, is_enum specialization to pair to allow recursive containers and type traits intrinsics
2016-06-25 11:04:55 +02:00
Ion Gaztañaga
a52684beea
Some dispatch_uses_allocator overloads don't forward the allocator argument
2016-06-25 11:03:57 +02:00
Ion Gaztañaga
b888d2ae47
Fixes Trac #12183 (GCC 6.1 thinks boost::container::string violates strict aliasing)
2016-05-16 16:59:25 +02:00
Ion Gaztañaga
132e57a348
Fixes Trac #12177 ("vector::priv_merge uses unqualified uintptr_t")
2016-05-13 23:50:34 +02:00
Ion Gaztañaga
873daf9a0c
Fixed bug Trac #11170
2016-05-13 22:17:03 +02:00
Ion Gaztañaga
3e82a27917
Fixes Trac #11912 : "flat_map use of vector::priv_forward_range_insert_expand_backwards may cause move with same source"
2016-02-24 22:27:53 +01:00
Ion Gaztañaga
310d8eaf10
Fixed Trac #11957 : "static_vector::max_size() is higher than the capacity"
2016-02-24 14:45:44 +01:00
Ion Gaztañaga
a7158c7975
Fixed Trac #12014 : "boost::container::set can not insert const (ref) range"
2016-02-24 10:13:07 +01:00
Ion Gaztañaga
530713139d
Fix typo
2016-02-23 13:28:31 +01:00
Ion Gaztañaga
b436c91590
Fix Trac #11866 : small_vector does not have range constructor. Added all missing constructors to small vector
2015-12-25 13:27:30 +01:00
Ion Gaztañaga
4e2dfe138b
Add workaround to correctly implement allocator_traits::destroy with small_vector_allocator<std::allocator>
2015-12-25 13:25:56 +01:00
Ion Gaztañaga
c894ddf5a5
Use SFINAE in range constructors to detect iterators
2015-12-25 13:24:27 +01:00
Ion Gaztañaga
641d1a5d5a
small_vector: Added copy/move constructor/assignments from small_vector_base
2015-12-24 13:46:00 +01:00
Ion Gaztañaga
75f7c8fa73
Introduced BOOST_CONTAINER_FORCEINLINE so that mandatory inlining can be disabled selectively
2015-12-24 10:22:38 +01:00
Ion Gaztañaga
a3262c0ae7
Fix for Trac #11820 ("compiler error when using operator[] of map")
2015-12-24 01:14:10 +01:00
Ion Gaztañaga
283d8ff717
Merge branch 'include-string' of https://github.com/muggenhor/boost-container into muggenhor-include-string
2015-12-23 10:28:49 +01:00
Ion Gaztañaga
08e768f1d8
Fix comment about self-assignment
2015-11-06 21:49:55 +01:00
Ion Gaztañaga
629a2aa85c
Use boost.container placement version in priv_construct
2015-10-31 00:53:59 +01:00
Giel van Schijndel
f60f0bde95
Make sure std::string constructor is available
...
.. because <stdexcept> only needs to have a forward declaration of
std::string. But that's not enough to invoke constructors of
std::exception (and derivatives) if we don't have a reference to an
std::string handy.
2015-10-30 14:23:37 +01:00
Ion Gaztañaga
e50a8f7cdf
Merge branch 'patch-1' of https://github.com/praetorian20/container into praetorian20-patch-1
2015-10-24 21:39:06 +02:00
Ion Gaztañaga
c4505003c7
Minimize ifdef-ed code for BOOST_MOVE_HELPERS_RETURN_SFINAE_BROKEN
2015-10-17 10:17:30 +02:00
Ion Gaztañaga
1d5c367d62
Use BOOST_MOVE_HELPERS_RETURN_SFINAE_BROKEN as some compilers prefer return type SFINAE while others don't support it.
2015-10-17 09:39:56 +02:00
Ion Gaztañaga
d517bf46a8
- Simplified code using new priv_raw_begin(), renamed back_raw to priv_back_raw to match it.
...
- Avoid dynamic allocation in priv_merge when there is enough capacity for new elements.
2015-10-12 18:57:44 +02:00
Ion Gaztañaga
7764e05444
Changes to support GCC 3.4
2015-10-12 18:51:08 +02:00
Ion Gaztañaga
f8a4f01a86
Fixed Trac #11698 ("Missing return statement in static_storage_allocator")
2015-09-30 22:39:44 +02:00
Ion Gaztañaga
79274e4aae
Fixed Trac #11697 ("Wrong initialization order in tuple copy-constructor")
2015-09-30 22:35:17 +02:00
Ion Gaztañaga
85b2ed509b
Added debug assertions via BOOST_ASSERT to check preconditions in several members. All checks are O(1)
2015-09-18 14:39:17 +02:00
Ion Gaztañaga
3f4a5dec6e
Add some C++1 missing functions to string and a couple of debug assertions
2015-09-18 14:38:38 +02:00
Ion Gaztañaga
f637fada71
Use newly refactored move/detail/std_fwd_xxx.hpp headers
2015-09-14 22:38:26 +02:00
Ion Gaztañaga
7071fbc7d8
Fixed unused argument warning in swap_resources().
...
Fixed changelog copy-paste error.
2015-09-10 12:09:08 +02:00
Ion Gaztañaga
f1f97518d3
Fixed Track #11627 and #11628
2015-09-09 09:48:09 +02:00
Ion Gaztañaga
33d2f0f7af
Add Polymorphic Memory Resource utilities and rework the separately compiled library:
...
- Dlmalloc's based C function are boost_cont_xxx no longer exported, but wrapped into C++ linkage dlmalloc_xxx functions to effectively reuse Boost's dynamic library and autolink machinery instead of rewriting machinery to compile the C source file.
- Refactored scoped_allocator_adaptor's construct logic as it was shared with polymorphic allocator's one. Moved common logic to detail/dispatch_uses_allocator.hpp. Refactored also scoped_allocator_adaptor test utilities to be reused with polymorphic_allocator tests.
2015-09-07 19:16:46 +02:00
Ion Gaztañaga
77100c0bfc
Removed commented code.
2015-09-07 19:08:48 +02:00
Ion Gaztañaga
f9918cf967
Removed piecewise_construct_t as it's not used yet
2015-09-07 19:08:08 +02:00
Ion Gaztañaga
b2c4f3c4cb
Fixed shadowing warning
2015-09-07 19:07:32 +02:00
Ion Gaztañaga
c6a5f248c8
Separated constructors of default constructed allocators
2015-09-07 19:07:05 +02:00
Ion Gaztañaga
8851580370
Documentation fixes
2015-09-07 19:06:45 +02:00
Ashish Sadanandan
25f34506fd
Doc fixes for flap_map complexity requirements
...
Removed typo from one complexity spec and added periods after few others for consistency
2015-08-14 16:27:19 -06:00
Ion Gaztañaga
a91f6d317b
Fixed wrong call to vector::merge_unique in insert_unique and used placement construction in priv_merge_in_new_buffer
2015-07-21 23:40:52 +02:00
Ion Gaztañaga
a7f60c1e8c
Fix for Trac #11412 ("reserve() : null pointer passed to memmove")
2015-07-02 13:50:08 +02:00
Ion Gaztañaga
61a2f49ef2
Fixes Trac #11388 (boost::container::list::emplace_back broken on Visual Studio 2010)
2015-06-12 23:51:58 +02:00
Ion Gaztañaga
acf4484fc7
Merge branch 'fix-doc' of https://github.com/kariya-mitsuru/container into kariya-mitsuru-fix-doc
2015-06-09 22:35:29 +02:00
Ion Gaztañaga
884c6e2bd2
Change spacing
2015-06-09 14:52:44 +02:00
Ion Gaztañaga
c6e1760be0
Merge branch 'bug-11380' of https://github.com/ilor/container into ilor-bug-11380
2015-06-09 10:47:30 +02:00