jeudi 20 juin 2019

Why isn't forwarding reference const?

The forwarding reference is supposed to forward the argument to another function, right? So why isn't it const?

template <typename T>
void func(const T&&);

Aucun commentaire:

Enregistrer un commentaire