We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I get compilation errors when trying to use view::sliding over a view created with view::group_by
view::sliding
view::group_by
Compiler: g++ 8.2.0, --std=c++17
Code:
#include <iostream> #include <string> #include <vector> #include <range/v3/all.hpp> int main() { std::vector<double> v{2.0, 2.0, 3.0, 1.0}; std::vector<int> i{1, 2, 1, 2}; std::vector<int> t{1, 1, 2, 2}; { using namespace ranges; auto vals = view::zip(v, i, t); auto g = view::group_by( vals, [](auto&& t1, auto&& t2) { return std::get<2>(t1) == std::get<2>(t2); }); auto windows = view::sliding(g, 2); auto it = std::begin(windows); } }
The text was updated successfully, but these errors were encountered:
const-correctness bug in view::sliding; fixes #975
9391089
f0f546e
Merge pull request #976 from ericniebler/fix-view-sliding
fe27dc6
thanks!
Sorry, something went wrong.
No branches or pull requests
I get compilation errors when trying to use
view::sliding
over a view created withview::group_by
Compiler: g++ 8.2.0, --std=c++17
Code:
The text was updated successfully, but these errors were encountered: