mardi 1 décembre 2015

How can I enable nested class template only for parent class variadic template arguments?

In my program I have following code:

template<typename... Args>
class Outer {
    template<typename Arg>
    class Inner {
        //some code
    }
}

How can I restrict Arg to be one of the types in Args template pack?

Aucun commentaire:

Enregistrer un commentaire