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

action/slice.hpp is not self contained #1107

Closed
dvirtz opened this issue Mar 26, 2019 · 0 comments
Closed

action/slice.hpp is not self contained #1107

dvirtz opened this issue Mar 26, 2019 · 0 comments
Labels

Comments

@dvirtz
Copy link
Contributor

dvirtz commented Mar 26, 2019

The following code only compiles if I uncomment the first include:

// #include <range/v3/core.hpp>
#include <range/v3/action/slice.hpp>
#include <vector>

using namespace ranges;

int main(){
    std::vector<int> rng{0, 1, 2};

    rng |= action::slice(1, end - 1);
}

https://gcc.godbolt.org/z/anPzmB

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