vendredi 28 juillet 2017

Parameter pack used for default template parameter

I'd like to do something like this:

template<int... myints>
struct A
{}

template<int... myints, class traits = A<myints...>>
struct B
{}

I know that parameter packs should appear only at the end, but I remember there are some exceptions. Do you think that is there a way to make this code (or something similar) work?

Thanks

Aucun commentaire:

Enregistrer un commentaire