Andrey Semashev
e61592c553
Merge pull request #32 from morinmorin/clean_up_function_input_iterator
...
Clean up function_input_iterator
2017-09-07 18:46:07 +03:00
morinmorin
40da532a4d
Suppress signed-unsigned comparison warning.
2017-09-07 20:17:35 +09:00
morinmorin
7ce9f87954
Add more feature checks; lambda test needs decltype-based result_of.
2017-09-07 20:14:39 +09:00
morinmorin
479898d9d5
Remove unnecessary headers in test.
2017-09-06 19:41:24 +09:00
morinmorin
24d2f58f98
Use lightweight_test.hpp instead of <cassert>
2017-09-05 00:32:15 +09:00
Andrey Semashev
25a91d5981
Silenced gcc warnings about unused parameters.
2017-09-01 20:51:07 +03:00
Andrey Semashev
9b78dc1006
Replaced vector::data() with &v[0] for compatibility with older compilers that don't provide this function.
2017-08-30 17:09:19 +03:00
Andrey Semashev
c529399fb1
Reworked the test to avoid bogus warnings from gcc.
2017-08-27 17:48:47 +03:00
Andrey Semashev
6faa3a942b
Merge branch 'develop' of github.com:boostorg/iterator into develop
2017-08-27 17:31:54 +03:00
Andrey Semashev
0c6b09ef6a
Workaround MSVC 14.1 problem with template specialization partial ordering that caused compilation failure when next/prior is used with pointers. Added a test.
2017-08-27 17:31:34 +03:00
Andrey Semashev
210633c08c
Silenced warnings about signed/unsigned mismatch in comparisons.
2017-08-27 13:59:09 +03:00
Andrey Semashev
2b6b6bf8ad
Silence warnings in tests about unused variables and local typedefs.
2017-08-26 20:39:26 +03:00
Andrey Semashev
a48de6a8b8
Added tests for next/prior to the Jamfile. Ported tests to lightweight_test.hpp.
2017-08-26 15:31:38 +03:00
Brian Minard
bab02bb82e
Add test cases for std::reverse_iterator
2017-08-26 15:23:36 +03:00
Andrey Semashev
9d054b25ce
Reworked next() and prior() taking the distance arguments.
...
The new version should provide the expected behavior in the case (prior(v.end(), v.size()) == v.begin()). It should also work with integers now, as was originally intended by David Abrahams. Added tests to verify these new use cases.
2017-08-26 15:23:36 +03:00
Andrey Semashev
d1b22ac8e8
Remove executable bit from the file.
2017-08-26 15:23:36 +03:00
Dave Abrahams
a4bacb5077
Extended next/prior using patch from Daniel Walker (Daniel.Walker-at-bowneglobal.com)
...
[SVN r21382]
2017-08-26 15:23:36 +03:00
morinmorin
029277f3ed
Add more tests for ReabableIterator
2017-07-08 13:30:28 +09:00
morinmorin
bb54ee7900
Update Jamfile.v2 for new tests
2017-06-29 22:49:05 +09:00
morinmorin
d5b67c7fab
Add tests for boost::advance/distance
2017-06-29 22:09:26 +09:00
Edward Diener
cccbd8c6aa
Test needs both std::typle support and variadic template support.
2017-04-08 16:53:02 -04:00
morinmorin
ca3b7505ce
Add a testcase for trac ticket 12895
2017-03-15 20:41:24 +09:00
Edward Diener
89d3ec7662
Add inclusion of config.hpp
2016-12-17 19:32:52 -05:00
Edward Diener
c86db2ec8a
Merge branch 'support-lambda-expression' of https://github.com/nekko1119/iterator into nekko1119-support-lambda-expression
2016-12-16 04:22:44 -05:00
Edward Diener
11e3715f37
Updated to use unique_ptr instead of auto_ptr when appropriate. Removed unnecessary structs.
2016-11-07 14:01:19 -05:00
nekko1119
c09c8ca2b2
Support lambda expressions in function_input_iterator
2015-12-28 02:45:49 +09:00
Marcel Raad
443dfb9901
Fix test compilation
...
boost/iterator.hpp was implicitly dragged in via boost/operators.hpp, from which it was removed in cb6500161b
. It's not needed anyway, all it does is map boost::iterator to std::iterator.
2015-09-22 00:33:50 +02:00
Edward Diener
878812c42f
More tests with fusion sequence as tuple
2015-08-23 23:46:44 -04:00
Edward Diener
a0533d97f5
Merge branch 'pr/zip_iterator/fusionize' of https://github.com/Flast/iterator into Flast-pr/zip_iterator/fusionize
2015-08-21 22:09:37 -04:00
Kohei Takahashi
3d3560c12d
Avoid 'reference to reference' error in C++03.
...
Some (strict) C++03 compilers (e.g. `gcc -std=c++03`) reject
'reference-to-reference' in the template and typedef which described
in CWG DR106 [1].
In such situations, iterator_facade rejects reference type as a value
type and some special iterators will become ill-formed:
the test libs/range/test/join.hpp might be descriptive.
[1] http://www.open-std.org/Jtc1/sc22/wg21/docs/cwg_defects.html#106
Signed-off-by: Kohei Takahashi <flast@flast.jp>
2014-09-29 14:58:40 +09:00
Kohei Takahashi
2511f21d62
Merge upstream branch 'develop' into pr/zip_iterator/fusionize
2014-08-25 00:36:36 +09:00
Andrey Semashev
f158dba6ad
Moved minimum_category to the public namespace. Added tests.
2014-07-19 21:39:49 +04:00
Andrey Semashev
810b58cfb0
Moved pure_traversal_tag to public namespace.
...
Also added an import into the boost::detail namespace for backward compatibility with Boost.Range. Added a pure_iterator_traversal metafunction that automatically converts iterator category as well.
2014-07-19 20:57:42 +04:00
Kohei Takahashi
156c13a494
Merge upstream branch 'develop' into pr/zip_iterator/fusionize
...
Signed-off-by: Kohei Takahashi <flast@flast.jp>
2014-07-12 15:57:03 +09:00
Kohei Takahashi
11f7d1bc18
Merge upstream branch 'develop' into pr/zip_iterator/fusionize
...
Signed-off-by: Kohei Takahashi <flast@flast.jp>
2014-07-03 21:52:26 +09:00
Andrey Semashev
dc96d371fa
Moved most components of the library to iterators:: namespace.
...
This change excludes boost:: and boost::detail:: namespaces from ADL for unqualified function calls (e.g. algorithms). This reduces the possibility of name clashes with other libraries and user's code. One of the effects should be fixing test failures on gcc 4.2 and 4.4 due to clashed with Boost.TypeTraits.
Also some of the functions marked with inline keyword.
2014-07-03 00:22:45 +04:00
Noel Belcourt
e000b676cc
Merge pull request #4 from Lastique/sfinae-based-operators
...
Make iterator operators conditionally defined depending on its category.
Looks okay and fixes several known problems, thanks Andrey.
2014-06-30 16:49:53 -06:00
Daniel James
045a05f81f
Run generator_iterator_test.cpp
...
I accidentally removed it in 8e5b8025d8fa05c72403b946d6748c86923431b0.
2014-06-30 10:59:03 +01:00
Andrey Semashev
fd94cc7d78
Removed executable flags from docs, tests and examples.
2014-06-29 15:49:05 +04:00
Kohei Takahashi
9841d87212
Add tests for fusion based zip_iterator
...
Signed-off-by: Kohei Takahashi <flast@flast.jp>
2014-06-14 15:59:31 +09:00
John Maddock
6b2a5cccc4
Remove all references to now defunct (and removed) header.
...
[SVN r86438]
2014-06-06 01:06:48 +01:00
Stephen Kelly
a803b5b42d
Remove use of obsolete BOOST_TT_BROKEN_COMPILER_SPEC
...
[SVN r86250]
2014-06-06 01:06:48 +01:00
Daniel James
8e5b8025d8
Revert changes that were merged to master.
...
Reverted: 2e099caceb9..21102938e8ccb
I'm going to reapply some of them soon, but it's easier to revert them
all first, as there are conflicts. Also the number of changes that were
inserted since then, mean that there would be a huge gap between related
changes.
2014-06-06 00:56:20 +01:00
Peter Dimov
2d9362fe89
Move generator_iterator doc/test files, update test/Jamfile.v2.
2014-06-05 02:37:48 +03:00
John Maddock
d4d51389d1
Remove all references to now defunct (and removed) header.
...
[SVN r86438]
2013-10-26 10:13:38 +00:00
Stephen Kelly
4a82a5646f
Remove use of obsolete BOOST_TT_BROKEN_COMPILER_SPEC
...
[SVN r86250]
2013-10-11 23:23:26 +00:00
Jeffrey Lee Hellrung, Jr.
512298cb5c
- BREAKING CHANGE: iterator_facade::pointer now corresponds to the actual result of iterator_facade::operator-> rather than Value*. This required an adjustment to a test.
...
- The logic for determining the result of iterator_facade::operator[] has been factored out into a separate detail header in preparation for its potential use in iterator_range to avoid iterator_range::operator[] from returning a reference to a temporary.
[SVN r80901]
2012-10-08 02:02:09 +00:00
Jeffrey Lee Hellrung, Jr.
31c3971720
fix #5825 ; fix #7194
...
[SVN r80467]
2012-09-09 15:33:12 +00:00
Jeffrey Lee Hellrung, Jr.
ad90dac61d
refs #5127 applying Michael Morin's patch for transform_iterator to trunk
...
[SVN r78121]
2012-04-22 01:27:49 +00:00
Jeremiah Willcock
964a29979c
Applied patches from #5697 ; refs #5697
...
[SVN r77723]
2012-04-02 18:19:44 +00:00