Skip to content
New issue

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

view::indirect does not work with view::transform #952

Closed
tower120 opened this issue Dec 2, 2018 · 0 comments
Closed

view::indirect does not work with view::transform #952

tower120 opened this issue Dec 2, 2018 · 0 comments
Labels

Comments

@tower120
Copy link
Contributor

tower120 commented Dec 2, 2018

Following doesn't compiles:

    std::vector<int> list;
    auto a = list | ranges::view::transform([](int& i)->int* {return &i; })
                  | ranges::view::indirect;
    auto b = a.begin();

Compiler errors are not very helpful...
https://wandbox.org/permlink/h71MoQWuMEpyfM8V

@CaseyCarter CaseyCarter added the bug label Dec 2, 2018
CaseyCarter added a commit to CaseyCarter/range-v3 that referenced this issue Dec 2, 2018
@CaseyCarter CaseyCarter mentioned this issue Dec 2, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants