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

[range.adaptor.tuple] Fix annoying tuple naming conflict #5769

Merged
merged 1 commit into from Aug 22, 2022

Conversation

hewillk
Copy link
Contributor

@hewillk hewillk commented Aug 22, 2022

namespace std::ranges {
  template<class F, class Tuple>
  constexpr auto tuple_transform(F&& f, Tuple&& tuple) { // \expos
    return apply([&]<class... Ts>(Ts&&... elements) {
      return tuple<invoke_result_t<F&, Ts>...>(invoke(f, std::forward<Ts>(elements))...);
    }, std::forward<Tuple>(tuple));
  }
}

error: 'tuple' does not name a template but is followed by template arguments; did you mean '::std::tuple'?

@tkoeppe tkoeppe merged commit 3b14610 into cplusplus:main Aug 22, 2022
@hewillk hewillk deleted the main-tuple branch August 22, 2022 10:05
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

Successfully merging this pull request may close these issues.

None yet

3 participants