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
Note I'm pretty new with ranges and concepts so I may be doing something dumb. This is with VS 17.1 Preview 2.
I have used zip_view for a few things without problem. Removing the const in the vector and span makes the error go away.
auto v { tl::zip_view( sp, ints ) };
auto p { []( auto const& x ) -> bool { return true; } };
// This does not compile with
// 1>C:\Users\foo\source\repos\TL\ranges\src\ranges.cpp(18,18): error C2672: 'operator __surrogate_func': no matching overloaded function found
// 1>C:\Users\foo\source\repos\TL\ranges\src\ranges.cpp(18,31): error C7602: 'std::ranges::_Any_of_fn::operator ()': the associated constraints are not satisfied
std::ranges::any_of( v, p )
Note I'm pretty new with ranges and concepts so I may be doing something dumb. This is with VS 17.1 Preview 2.
I have used zip_view for a few things without problem. Removing the const in the vector and span makes the error go away.
`void foo( )
{
std::vector const ints { 0, 1, 2 };
std::span sp { ints };
};`
zip_view.zip
The text was updated successfully, but these errors were encountered: