mirror of
https://github.com/boostorg/iterator.git
synced 2025-05-12 05:51:37 +00:00
Merge branch 'develop' of github.com:boostorg/iterator into develop
This commit is contained in:
commit
6faa3a942b
@ -94,7 +94,7 @@ int main(int argc, char * argv[])
|
|||||||
assert(generated.size() == 10);
|
assert(generated.size() == 10);
|
||||||
assert(counter_generator.n == 42 + 10);
|
assert(counter_generator.n == 42 + 10);
|
||||||
for(std::size_t i = 0; i != 10; ++i)
|
for(std::size_t i = 0; i != 10; ++i)
|
||||||
assert(generated[i] == 42 + i);
|
assert(generated[i] == static_cast<int>(42 + i));
|
||||||
cout << "function iterator test with stateful function object successful." << endl;
|
cout << "function iterator test with stateful function object successful." << endl;
|
||||||
|
|
||||||
#if !defined(BOOST_NO_CXX11_LAMBDAS) && !defined(BOOST_NO_CXX11_AUTO_DECLARATIONS)
|
#if !defined(BOOST_NO_CXX11_LAMBDAS) && !defined(BOOST_NO_CXX11_AUTO_DECLARATIONS)
|
||||||
@ -110,7 +110,7 @@ int main(int argc, char * argv[])
|
|||||||
|
|
||||||
assert(generated.size() == 10);
|
assert(generated.size() == 10);
|
||||||
for(std::size_t i = 0; i != 10; ++i)
|
for(std::size_t i = 0; i != 10; ++i)
|
||||||
assert(generated[i] == 42 + i);
|
assert(generated[i] == static_cast<int>(42 + i));
|
||||||
cout << "function iterator test with lambda expressions successful." << endl;
|
cout << "function iterator test with lambda expressions successful." << endl;
|
||||||
#endif // BOOST_NO_CXX11_LAMBDAS
|
#endif // BOOST_NO_CXX11_LAMBDAS
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user