Andrey Semashev
3cc4107d01
Added a test for compatibility of boost::distance between Range and Iterator.
...
This functionality is used in core Boost components, so it is preferable
to test it in Boost.Iterator, even if it's already tested in Boost.Range,
to discover problems as early as possible.
The test verifies that boost::distance implemented in Boost.Range can invoke
boost::distance in Boost.Iterator (i.e. the function lookup succeeds).
2018-09-23 12:37:21 +03:00
morinmorin
194087e8ca
Merge branch 'develop' into fix/unwanted_adl
2018-09-22 20:47:10 +09:00
morinmorin
b5edc8b64f
Add test for ADL issues.
2018-09-22 20:44:29 +09:00
Daniela Engert
e16f2de233
Inheriting std::iterator is deprecated in c++17.
...
Boost's iterator.hpp is deprecated, too. Therefore get rid of all of that and replace inheritance by lifting std::iterator's members into the derived class.
Signed-off-by: Daniela Engert <dani@ngrt.de>
2017-12-27 09:32:51 +01:00
Peter Dimov
0013c5c4f0
Skip zip_iterator_test_std_pair on g++ in C++03 mode
2017-12-24 04:56:47 +02:00
Peter Dimov
386dbf1054
Skip zip_iterator_test_std_pair on msvc-9.0 and below
2017-12-24 04:38:07 +02:00
Peter Dimov
adecfd94f3
Use lightweight_test in shared_iterator_test.cpp
2017-12-23 23:45:59 +02:00
Peter Dimov
affe7e6d84
Add shared_iterator_test to test/Jamfile
2017-12-23 23:45:33 +02:00
Peter Dimov
91b392a478
Move test files to test/
2017-12-23 22:05:35 +02:00
Peter Dimov
81faa161cf
Add #include <boost/next_prior.hpp>; no longer in utility.hpp
2017-12-02 04:04:32 +02:00
Andrey Semashev
e2f81e9b48
Silenced signed/unsigned mismatch warning.
2017-09-08 18:12:58 +03:00
Andrey Semashev
379200dfd1
Force result_of use decltype whenever possible to maximize testing of function input iterator with lambdas.
2017-09-08 18:12:02 +03:00
Andrey Semashev
a26314dfb9
Added a check for BOOST_RESULT_OF_USE_DECLTYPE in case if tests are run with forced use of decltype in result_of.
2017-09-07 18:51:36 +03:00
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