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

no match for call to size inside ref_view #337

Open
dvirtz opened this issue Sep 10, 2019 · 0 comments
Open

no match for call to size inside ref_view #337

dvirtz opened this issue Sep 10, 2019 · 0 comments

Comments

@dvirtz
Copy link

dvirtz commented Sep 10, 2019

The following code:

auto &&res = views::split(views::empty<int>, 0);
auto &&front = *begin(res);
return distance(views::ext::ref(front));

Fails to build on gcc trunk with:

/opt/compiler-explorer/libs/cmcstl2/include/stl2/view/ref.hpp:76:23: error: no match for call to '(const std::experimental::ranges::v1::__size::__fn) (std::experimental::ranges::v1::split_view<std::experimental::ranges::v1::empty_view<int>, std::experimental::ranges::v1::single_view<int> >::__outer_iterator<true>::value_type&)'

   76 |    return __stl2::size(*r_);

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant