template ersatz
-
Unter C++ kann man bei klassentemplates ja von der übergebenen klasse ableiten:
Also so:
template<class Y> class X : public Y
Mit generics geht das natürlich nicht so, weil es ja laufzeitpolymorphismus ist. Gibts dafür irgendeinen ersatz? Sowas wie eine proxyklasse die für mich weiterdelegiert?
Also sowas :
class<T> X : ProxyThingy<T>
-
fast
anstattclass<T> X : ProxyThingy<T>
nimmst du
class X<T> : ProxyThingy<T>