Connecting Tech Pros Worldwide Forums | Help | Site Map

template trouble

Gernot Frisch
Guest
 
Posts: n/a
#1: Jul 22 '05
template <class T> void SetAry(CComSafeArray< T >*& pSar, int num, T*
pData)
{}

CComSafeArray<REAL> *pSs;
REAL* Ss;
SetAry(pSs, 6, Ss);

Gives error:

C2784: 'void SetAry(ATL::CComSafeArray<T> *& ,int,T *)': template
argument for 'ATL::CComSafeArray<T> *& ' of 'ATL::CComSafeArray<T> *'
could not be derived
with
[
T=REAL
]
See declaration of 'SetAry'

Does anyone "understand" the error? If so, is there a solutiuon?


--
-Gernot
int main(int argc, char** argv) {printf
("%silto%c%cf%cgl%ssic%ccom%c", "ma", 58, 'g', 64, "ba", 46, 10);}

________________________________________
Looking for a good game? Do it yourself!
GLBasic - you can do
www.GLBasic.com



Closed Thread