Rene Rivera
c31588ed06
Change all <source> references to <library>.
2024-07-20 19:42:16 -05:00
Rene Rivera
048e860e59
Make the library modular usable.
2024-03-11 08:38:17 -05:00
neilgroves
72e2a4457a
Merge pull request #69 from cwecht/unique_erase
...
Added boost::unique_erase
2020-05-11 19:05:31 +01:00
neilgroves
5572b24a71
Merge pull request #101 from Kojoley/deprecated-headers-compile-time-warning
...
Add compile-time warning to deprecated headers
2020-05-11 19:04:30 +01:00
Glen Fernandes
9a2960f01b
Merge pull request #104 from eldiener/develop
...
Changes for Embarcadero C++ clang-based compilers, targeting Boost 1.74. Change __BORLANDC__ to BOOST_BORLANDC, which is defined in Boost conf…
2020-05-11 13:00:07 -04:00
Andrey Semashev
ee1ec1cf57
Fix deprecated usage of boost/bind.hpp.
...
boost/bind.hpp emits compiler warnings about deprecation of the header
and global _N placeholders. This commit converts usage of this header
to boost/bind/bind.hpp and using namespace boost::placeholders.
Where boost::bind is not actually used, the includes are removed.
2020-05-11 19:26:26 +03:00
Andrey Semashev
3b04f1a65e
Remove uses of deprecated header boost/detail/iterator.hpp.
...
This header was deprecated in favor of <iterator>. It generates compiler
warnings and will be removed in a future release.
2020-05-11 19:13:20 +03:00
Edward Diener
45d3aae111
Change __BORLANDC__ to BOOST_BORLANDC, which is defined in Boost config for the Embarcadero non-clang-based compilers.
2020-03-31 16:55:55 -04:00
Nikita Kniazev
c25b0e5069
Add compile-time warning to deprecated headers
2020-02-13 18:29:06 +03:00
code@jendruk.com
911d8a427d
Add result_type typedef in tests
2019-05-07 17:17:50 +02:00
code@jendruk.com
3496282d3b
Remove usage of initializer_list in test
2019-05-07 17:01:02 +02:00
code@jendruk.com
dbb6ef424f
Fix any_range with non-reference references can cause UB
2019-05-07 12:06:05 +02:00
Peter Dimov
7efe3c68f6
Fix msvc-10.0, msvc-11.0 failures in ref_unwrapped tests
2018-09-24 02:21:55 +03:00
Christopher Wecht
11dd528eb0
added unique_erase
2018-04-24 16:29:31 +02:00
neilgroves
5b2500872d
Revert "push_back: added support for not-copyable but moveable value-types li…"
2018-01-03 14:36:50 +00:00
Peter Dimov
1dac6a796e
Add quick test target (for CI)
2017-12-02 19:10:56 +02:00
neilgroves
d1f36fba8d
Merge pull request #54 from cwecht/push_back_move_support
...
push_back: added support for not-copyable but moveable value-types li…
2017-11-15 19:51:00 +00:00
neilgroves
4283443532
Merge pull request #57 from jeanphilippeD/fix_transformed_test
...
Fix transformed test compile error on GCC 5.4
2017-11-15 19:49:05 +00:00
neilgroves
3771624560
Merge pull request #43 from timblechmann/topic/unary-irange
...
irange: introduce one-parameter variant of irange
2017-11-15 19:48:19 +00:00
Jean-Philippe DUFRAIGNE
4a729678fd
Fix transformed test compile error on GCC 5.4
...
The function object 'lambda' did not provide result_type like the other
function objects did.
The test now compile and pass using'b2'
2017-09-24 14:13:42 +01:00
Peter Dimov
8b98b696ff
Qualify boost::search in test/algorithm to avoid ambiguity with C++17's std::search
2017-09-10 03:01:13 +03:00
Christopher Wecht
d99628981d
push_back: added support for not-copyable but moveable value-types like e.g. unique_ptr
2017-09-01 17:53:46 +02:00
neilgroves
796080bbb8
Merge pull request #46 from jeanphilippeD/lambda_copy_transform_it
...
Allow iterator copy for lambda in transformed and filtered
2017-06-30 12:43:38 +01:00
Daniela Engert
23e5801e2a
Conditionally replace deprecated/removed C++98 function adapters and std::random_shuffle by equivalents.
...
Signed-off-by: Daniela Engert <dani@ngrt.de >
2017-05-05 14:15:11 +02:00
Eric Niebler
910fc7bf82
Qualify call to boost::size to avoid ambiguity with std::size
2016-11-23 14:47:42 -08:00
Eric Niebler
67c18ac1f1
Merge remote-tracking branch 'origin/master' into develop
2016-11-18 21:28:24 -08:00
Jean-Philippe DUFRAIGNE
1b4f8100ef
Allow iterator copy for lambda in transformed and filtered
...
Lambda has no default constructor nor a copy or move assignment.
range\test\adaptors.cpp is checking that produced ranges are copiable,
but it is not doing so the for lambda, or lambda like objects.
default_constructible_unary_fn uses an optional for default
construction.
I extended it to use its emplace facility to copy assign non copy
assignable types.
(see boost::optional 'Type Requierment': 'If T is not MoveAssignable,
it is still possible to reset the value of optional<T> using function
emplace():')
2016-10-23 23:27:31 +01:00
Tim Blechmann
bb43887430
irange: introduce one-parameter variant of irange
...
this simplifies the use of boost::irange, as boost::irange( 0, foo );
may compile or not depending on the platform-specific integer type of
foo, requiring an explicit cast of 0 to decltype(foo).
2016-01-17 11:40:55 +01:00
neilgroves
5a37aa4e98
Merge pull request #41 from robin-eckert/adaptor_ref_unwrapped
...
add a new range adaptor boost::adaptors::ref_unwrapped
2016-01-04 16:38:36 +00:00
Robin Eckert
3225aaf82b
add a new range adaptor boost::adaptors::ref_unwrapped
...
The new adaptor is like boost::adaptors::indirected, but for
std::reference_wrapper values (instead of pointer). It calls
.get() on every value and returns the result. It is useful for
range-based iteration of ranges of std::reference_wrapper (or
related) types.
2015-11-04 19:12:26 +01:00
Marcel Raad
1a3aeeb336
Fix test compilation
...
boost::detail::iterator_traits was used without including the necessary header
file. It's deprecated anyway and only maps to std::iterator_traits. Also,
utility was missing for std::pair.
2015-09-22 00:51:41 +02:00
neilgroves
f83381d938
Merge pull request #36 from morinmorin/fix/ticket11563
...
Fix ticket 11563 (boost::range behavior changed from 1.55 to 1.56)
2015-09-07 07:45:08 +01:00
morinmorin
490ba3fdcd
Reapply r85400 (this time use Iterator1 instead of Iterator2 as per r85691) and enhance the testcase; fixes ticket 11563.
2015-08-21 21:40:25 +09:00
morinmorin
e4f456d438
Fix credit in ticket 5014 testcase
2015-08-20 20:36:19 +09:00
Neil Groves
7669f52547
Merge branch 'develop'
2015-04-21 08:22:15 +01:00
Neil Groves
de206a64db
ticket10514 subrange unit test added.
2015-02-02 20:26:31 +00:00
Neil Groves
4a80ccd50d
Ticket 10988 - Filtered adaptor should only require SinglePassRange.
2015-02-01 19:05:58 +00:00
Neil Groves
6f11252633
Ticket 10336 - unit test added.
2015-01-31 14:50:58 +00:00
Neil Groves
2356783e17
Merge branch 'develop'
...
Conflicts:
include/boost/range/detail/any_iterator.hpp
test/iterator_range.cpp
2015-01-31 13:38:08 +00:00
Neil Groves
470a28ecb6
replace =default in test to fix iterator_range.cpp unit test regression with older compilers.
2014-08-15 12:26:30 +01:00
Eric Niebler
7d13f63d5d
avoid SFINAE problem in iterator_range constructor
2014-08-09 14:48:57 -07:00
Neil Groves
c865de5aa6
Hotfix to add back advance_begin and advance_end.
2014-08-04 22:06:11 +01:00
Neil Groves
7fb879a283
Hotfix to add back advance_begin and advance_end.
2014-08-04 17:53:14 +01:00
Eric Niebler
c2a7ac4197
attempted fix for iterator_range relational operators bug
2014-07-29 17:53:27 -07:00
Neil Groves
3ecf600434
Fixed range adaptors that were creating underlying iterators that were not default constructible.
2014-06-16 14:49:25 +01:00
Kohei Takahashi
61e02039dd
More remove execute attribute from files.
...
rel. to:
e0e6fefb1e
Signed-off-by: Kohei Takahashi <flast@flast.jp >
2014-06-16 20:28:02 +09:00
Neil Groves
fc172fc509
fixed and resolved missing coverage in the copy_backward unit test.
2014-06-16 11:45:41 +01:00
Neil Groves
5ce6dc7814
change the return type from the indexed adaptor so that the index is available from the range element.
2014-06-09 02:12:00 +01:00
Neil Groves
5918e7e63e
changed the separated function to become the new formatted adaptor.
2014-06-05 01:00:13 +01:00
Neil Groves
60025220f5
add Enabler template argument to range_iterator, range_const_iterator and range_mutable_iterator extension points.
2014-06-04 12:23:40 +01:00