hi all,
is there anyway to pass a (unspecialised) templated class reference through a function? something like :
Code:
template <class TYPE> class VECTOR3 {/*etc etc*/};
template <class TYPE> class MTRand{/*etc etc*/};
int AFunction(VECTOR3<TYPE> v1, VECTOR3<TYPE> v2, MTRand<TYPE>);
except that doesn't compile -
d:\documents\comsic ray muon tomography\muon generator\muon generator\muonimagingmcsim.h(13) : error C2065: 'TYPE' : undeclared identifier
any help with my C/C++ language bastardisation greatly appreciated!