Commit Graph
212 Commits
Author SHA1 Message Date
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
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 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 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 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:
  https://github.com/boostorg/range/commit/e0e6fefb1ed5e6207428143876f507d45b381891

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
Neil Groves 4ec54072d3 change to fix MSVC 8 unit test failure due to uint32_t. 2014-05-07 01:46:38 +01:00
Neil Groves 5f2560f753 Ticket 9851 - adaptors should perform concept check assertions. 2014-05-06 23:37:21 +01:00
Neil Groves 449e78e0b0 test find works as a contains function. 2014-04-08 16:45:34 +01:00
Neil Groves ed0febc902 ticket 6172 - added unit test to ensure transformed works with bind. 2014-03-09 21:51:07 +00:00
Neil Groves a6bd3e6e44 added the boost::range::separated function for range output streaming. 2014-03-09 21:09:00 +00:00
Neil Groves 70256bd8b0 ticket 4572 - make_iterator_range_n 2014-03-09 19:27:28 +00:00
Neil Groves cbf385ac05 fix concepts on gccc4.8.2 and dodgy test iterators in iterator_range_drop.cpp test case. 2014-03-09 17:47:44 +00:00
Neil Groves 4ebbbba82b ticket 7885 rvalue support for metafunctions. 2014-03-09 00:28:43 +00:00
Neil Groves f86d487706 ticket 7294 iterator_range hash_value support. 2014-03-08 22:23:22 +00:00
Neil Groves 3ed0626756 ticket 8028 - combine reimplemented and now documented. 2014-03-08 20:52:10 +00:00
Neil Groves 4960d8dab2 fix lifetime issue with test case for ticket 6715. 2014-03-04 20:29:34 +00:00
Neil Groves e089e0748f fix for recently introduced regression to sub_range const propagation. 2014-03-04 20:22:57 +00:00
Neil Groves 69759731bb implemented drop_front and drop_back with test. 2014-03-04 15:05:00 +00:00
Neil Groves 0d93777ece type_erased unit test reduce dependencies of the recently split type_erased tests. 2014-03-04 12:33:51 +00:00
Neil Groves 6206535453 type_erased random_access adapter separated. 2014-03-04 12:02:28 +00:00
Neil Groves a4633c2c1e type_erased_bidrectional.cpp formatting. 2014-03-04 11:53:13 +00:00
Neil Groves bd1fd9610e type_erased test separated the forward traversal. 2014-03-04 11:52:02 +00:00
Neil Groves 379fbc51e3 type_erased unit test separated bidirectional traversal. 2014-03-04 11:46:57 +00:00
Neil Groves 438e735dcc type_erased split out single-pass. 2014-03-04 11:41:19 +00:00
Neil Groves c96897198a type_erased test separated the template parameter conversion test. 2014-03-04 11:34:36 +00:00
Neil Groves b5f60f0448 removed obsolete test code from type_erased.cpp. 2014-03-04 11:28:22 +00:00
Neil Groves 8de7e29fc7 type_erased mix of values test separated. 2014-03-04 11:26:50 +00:00
Neil Groves 43ab929257 type_erased abstract and brackets tests separated. 2014-03-04 11:18:46 +00:00
Neil Groves c9b96f2c88 trac 7376 - join iterator reference type. 2014-03-03 15:43:05 +00:00
Neil Groves 42a7f0c70c trac 6742 - unit test showing working phoenix combined with the transformed adaptor. 2014-03-03 14:21:35 +00:00
Neil Groves 4cb056c80b ticket 5811 - attempt to fix link error on many automated regression test hosts. 2014-03-03 12:30:23 +00:00
Neil Groves 17c0fa271c trac 9515 - fix for uniqued adaptor consistent with unique algorithm. 2014-03-03 01:24:56 +00:00
Neil Groves d87e1f3ade make intel happy with type_erased static_assert calls. 2014-03-03 00:30:11 +00:00
Neil Groves 132828a8db make msvc happy with the ticket 6715 test case. 2014-03-03 00:26:22 +00:00
Neil Groves 63acc5c633 trac 8676 sliced adaptor fixed. 2014-03-03 00:10:08 +00:00