NVIDIA / stdexec

`std::execution`, the proposed C++ framework for asynchronous and parallel programming.
Apache License 2.0
1.56k stars 159 forks source link

Confusing use of `template` #808

Closed seanbaxter closed 1 year ago

seanbaxter commented 1 year ago

What is this line? https://github.com/NVIDIA/stdexec/blob/main/include/nvexec/stream/schedule_from.cuh#L52

I've never seen this construct. If the idea is that it chooses a function template over a normal function, uhh, clang and gcc disagree: https://godbolt.org/z/1hcze1fcz

I don't know how to compile that.

gevtushenko commented 1 year ago

@seanbaxter I think there used to be a template parameter that I've removed and forgot to remove .template. There's no non-template function with that name. We should remove .template.