vendredi 22 février 2019

Passing template parameter pack to lambda doesn't work in gcc 4.8.2

The following code doesn't compile on gcc 4.8.2:

template<class... Args>
void f(Args&... args)
{
    auto lm = [args...]{ };
}

Do you know any workaround for this ?

Aucun commentaire:

Enregistrer un commentaire