C++ Logo


Advanced search

Re: Two small ideas

From: Ville Voutilainen <ville.voutilainen_at_[hidden]>
Date: Wed, 8 Dec 2021 20:29:57 +0200
On Wed, 8 Dec 2021 at 20:23, Gašper Ažman <gasper.azman_at_[hidden]> wrote:
> The problem with using `auto` in that space is that std::vector has a `typename` in that space.
> `auto` is for NTTPs.

Sure, when you actually have a NTTP. For various other contexts, like
function parameters we're talking about
here, auto is not just for NTTPs. Same goes for variables.

Received on 2021-12-08 12:31:01