Commit Graph
193 Commits
Author SHA1 Message Date
Ion Gaztañaga 015fdaf9c5 Add missing BOOST_INTRUSIVE_FORCEINLINE 2019-01-03 01:17:01 +01:00
Ion Gaztañaga 558a204832 Add null-pointer checks 2019-01-03 01:16:46 +01:00
Ion Gaztañaga c6298131cb Use voider to adapt "sqrt2_pow_max" to the new enable_if default type 2019-01-03 01:16:26 +01:00
Ion Gaztañaga 98e5f0ee09 Import "voider" from movelib 2019-01-03 01:14:53 +01:00
Andrey Semashev f847bd57bf Converted tabs to spaces. 2018-12-14 19:00:50 +03:00
Andrey Semashev 01d575bed4 Fix compilation in case if key is void*, again.
This commit fixes a compilation error with gcc 8.2 about ambiguous function
calls in tree_value_compare when the user specifies a key that has type void*.
The fix take approach similar to https://github.com/boostorg/intrusive/pull/21.
2018-12-14 18:46:28 +03:00
Ion Gaztañaga 2ab3421b17 In functions that modify data structures, take pointers by value instead of by reference, to avoid aliasing issues. 2018-09-27 10:14:16 +02:00
Ion Gaztañaga d94fbc76cc Add customized return type for tree_value_compare 2018-09-15 00:58:43 +02:00
Ion Gaztañaga 00efc25144 Reorder disabled warnings for clarity 2017-12-10 23:34:48 +01:00
Ion Gaztañaga 7f5caca12e Extract BOOST_INTRUSIVE_HAS_TYPE trait 2017-09-07 20:17:05 +02:00
Ion Gaztañaga ac718c54ed Fix call to intrinsic is_convertible with incomplete types in MSVC 14.1 2017-06-08 21:51:53 +02:00
Ion Gaztañaga db14782f0f Boost Trac #12698
GitHub Pull #23
GitHub Pull #24
2017-06-08 14:02:21 +02:00
Minmin Gong b6cd6e26ad Adds support for MSVC ARM64 target. 2017-06-01 00:11:06 -07:00
Ion Gaztañaga 018a39c433 Use directly boost::movelib::pointer_element/to_raw_pointer 2017-04-07 16:05:44 +02:00
Ion Gaztañaga 9268e2a3d8 Reuse utilities from Boost.Move 2017-04-06 23:32:15 +02:00
Andrey Semashev b1da5c25b4 Fix compilation in case if key is void*
If key type is `void*`, wrong `operator()` is chosen because of the dummy argument that is used for SFINAE. As a result the key comparison adapter invokes the user's predicate with only one argument, which fails to compile.

Use a more distict type for SFINAE in the dummy arguments. Fixes ticket #12745.
2017-01-14 15:33:01 +03:00
Ion Gaztañaga 7853a74c01 Avoid forceinline in old compilers due to bugs 2016-11-12 19:03:16 +01:00
Ion Gaztañaga 5c9f2d04cb Add missing forceinlines 2016-11-12 19:02:46 +01:00
Ion Gaztañaga 9ac060a6ae Fixed Trac #12432 ("Forced KeyOfValue creation when using custom compare on insert_check") 2016-09-03 00:01:55 +02:00
Ion Gaztañaga 36fb49abc9 Fix sg_[multi]set not working when merging from a set with a different comparison.
Update testcase to test merging from a different comparison.
2016-09-01 18:55:56 +02:00
Ion Gaztañaga b2498a0da4 Reduce simbol length using alog_types instead of algorithms directly in generic_hook. 2016-09-01 00:59:18 +02:00
Ion Gaztañaga 310ddc3485 Removed unneeded template parameters to tree_value_compare to reduce symbol length. 2016-08-29 16:52:31 +02:00
Ion Gaztañaga 2de5382dbb Simplify tree_value_compare overloads to avoid compilation errors in some old GCC versions. 2016-08-29 00:03:46 +02:00
Ion Gaztañaga 68c46450de Fixed Trac ticket #11476 ("has_member_function_callable_with.hpp is massively broken with BOOST_NO_CXX11_DECLTYPE") 2016-08-04 23:22:29 +02:00
Ion Gaztañaga e9e3f92427 Apply BOOST_INTRUSIVE_FORCEINLINE to some trivial functions. 2016-07-31 22:47:48 +02:00
Ion Gaztañaga 4014562502 Fixes Trac #11994: Support intrusive container key extractors that return the key by value
Change tests to return key by value.
2016-07-04 22:11:52 +02:00
Ion Gaztañaga 2d55c66475 Remove static instances for size_holder, as it provokes false positives in thread debugging tools and simplify size_traits usage, specially in swaps. 2016-07-02 22:34:41 +02:00
Ion Gaztañaga 1986349a22 Merge branch 'fixes/ebo_functor_holder_compile_fix' of https://github.com/timblechmann/intrusive into timblechmann-fixes/ebo_functor_holder_compile_fix 2016-02-26 23:20:56 +01:00
Ion Gaztañaga 72976d34f6 Fixes Boost Trac #11832: "clang-cl + boost intrusive = miscompile" 2016-02-26 20:46:58 +01:00
Ion Gaztañaga 6a9fa390ae Introduced BOOST_INTRUSIVE_FORCEINLINE, disabled by default until it's more tested 2015-12-24 10:29:09 +01:00
Tim Blechmann 95a5a56bc0 ebo_functor_holder: compile fix for copy constructor 2015-12-17 23:49:01 +01:00
Ion Gaztañaga ea47994cc0 Minimize ifdef-ed code for BOOST_MOVE_HELPERS_RETURN_SFINAE_BROKEN 2015-10-17 10:18:51 +02:00
Ion Gaztañaga a91afcbde4 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:34 +02:00
Ion Gaztañaga ff9a968958 Add some default constructor declarations, as GCC 3.4 seems to need them in is_constructible 2015-10-12 22:12:41 +02:00
Ion Gaztañaga 11280a0e29 Add support for GCC 3.4 2015-10-12 16:29:38 +02:00
Ion Gaztañaga dda91f0e00 Return tree_iterator reference in tree traversal functions to allow easy chaining (e.g. i.go_parent().go_left().go_right()) 2015-09-18 14:30:15 +02:00
Ion Gaztañaga 6fd1452c2b Use newly refactored move/detail/std_fwd_xxx.hpp headers 2015-09-14 22:37:37 +02:00
Ion Gaztañaga 7c36efbaa9 Added assignment and explicit copy constructor 2015-09-07 18:26:53 +02:00
Ion Gaztañaga 1e4a830323 Added move semantics to ebo_functor_holder 2015-09-07 18:25:36 +02:00
Ion Gaztañaga 79272de8ba Added is_pow2/static_is_pow2/ceil_pow2/previous_or_equal_pow2 2015-09-07 18:25:08 +02:00
Ion Gaztañaga 0f2714b8e8 BOOST_INTRUSIVE_MSVC_ABI_PTR_TO_MEMBER was incorrectly undefined so no virtual inheritance was tested in compilers that theoretically support it. 2015-09-07 18:24:16 +02:00
Ion Gaztañaga ebf117f1ff Support clang with gcc in std predeclarations 2015-06-09 14:22:57 +02:00
Ion Gaztañaga 51de75799b - Implemented map and multimap-like interfaces.
-  Refactored hashtable containers to reduce template instantiations.
2015-06-04 11:16:21 +02:00
Ion Gaztañaga 0b5ebe6cdd Make some typedefs private instead of protected (these iterators are not designed to be base classes). 2015-04-14 14:58:11 +02:00
Ion Gaztañaga 9e326ac254 Use iterator_arrow_result to support raw pointers as iterators. 2015-04-14 14:57:33 +02:00
Ion Gaztañaga eebabce934 Avoid inheritance 2015-04-14 14:56:38 +02:00
Ion Gaztañaga 1e4b94b32a Add iterator_arrow_result utility 2015-04-14 14:55:39 +02:00
Ion Gaztañaga 1614d58b74 hashtable_node: change pointer and references types from raw to those specified in value_traits. 2015-04-14 14:54:53 +02:00
Ion Gaztañaga dd385e0ec5 -> Use new Boost.Move meta utilities to avoid compilation errors in old compilers.
-> Implement equality operators as friend functions to make code clearer.
2015-04-12 12:56:04 +02:00
Ion Gaztañaga 1231ddd0e1 Fix error in reverse_iterator::operator[] 2015-04-04 22:53:28 +02:00