I am stuck into a weird problem of converting Java generics to equivalent C++ templates. Now, I have abstract class in Java defined as below:
template <class T, class K>
public abstract class A<K extends FirstClass<someclass>, T extends SecondClass<? extends anotherclass>> {
Now, in java I know class is assigned to ? on compile time which extends anotherClass. But, in C++ I could not find a way to achieve this. Any helps?
Aucun commentaire:
Enregistrer un commentaire