Force template parameter class to inherit from another templated class with partially fulfilled parameters

后端 未结 2 1963
無奈伤痛
無奈伤痛 2021-01-23 09:04

So I have the following two classes:

template < class Cost >
class Transformation {
  public:
    virtual Cost getCost() = 0;
};

template < class Trans         


        
2条回答