lundi 20 avril 2015

Using of types that was defined inside a template class

I want to use a type that was defined inside a template class. How can I do it?

template < typename A, typename B>
struct internal {
    const static std::string value; 
    typedef B type;
};

template < typename A > using external = struct internal<A,  int>;

external::type object;

Aucun commentaire:

Enregistrer un commentaire