You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
TEST(any_of, it_fails)
{
auto collection = iterators::Map(std::list<int>({1, 2, 3}), [](int i) { return i + 2; });
std::any_of(collection.begin(), collection.end(), [](int i) { return i > 4; });
}
And you get this:
/opt/rh/devtoolset-7/root/usr/include/c++/7/bits/stl_iterator_base_types.h:205:5: error: no type named 'iterator_category' in 'struct std::iterator_traits<iterators::MappedIterator<std::_List_iterator<int>, ::any_of_it_fails_Test::TestBody()::<lambda(int)> > >'
The text was updated successfully, but these errors were encountered:
Just try this:
And you get this:
The text was updated successfully, but these errors were encountered: