C++ Logo

std-proposals

Advanced search

Re: Down with "template"! (up with the turbofish)

From: Gašper Ažman <gasper.azman_at_[hidden]>
Date: Sat, 9 Oct 2021 15:15:22 +0100
I've started asking people to pass a std::type_identity<T>{} parameter
instead of explicit template params for my templated overloads. Way easier
than requiring people to disambiguate with `template`.

Then again, I call std::type_identity<T>{} `type<T>`. Way easier to work
with.

Received on 2021-10-09 09:16:28