vendredi 1 décembre 2017

How to get type from scope in template class?

Here I have some interesting code. Does anyone know how to get subtype from myClass without auxiliary parameter in template?


Note: Maybe myClass template too.

class myClass
{
  public:
    struct tPacaje
    {
      int data;
    };
};

template <class T>
class executorClass
{
  public:
    void todo(T::tPacaje ob)
    {
      ...
    }
};

Aucun commentaire:

Enregistrer un commentaire