mercredi 29 juin 2016

In C++11 when should we explicitly use std::decay?

We know that compiler will decay array/function to pointers when needed(according to context), then when is the time we should explicitly use std::decay?

Is there any task that requires us to use it, or else, compiler doesn't know how to handle it?

Thanks.

Aucun commentaire:

Enregistrer un commentaire