M
mosfet
I try this but I have an error :
//Declaration
template <class T, class TP>
int _VectorToSC(CArray<T, TP> ItemVec, UCHAR HFileID, UCHAR LFileID);
// implementation
template <class T, class TP>
int CSekureStorage::_VectorToSC(CArray<T, TP> ItemVec, UCHAR HFileID, UCHAR
LFileID)
{
........
}
----------------------------------------------------------------------------
---------------------------
CArray<TNameItem,TNameItem&> m_NameItemVec;
_VectorToSC(m_NameItemVec, 0x3F, 0x02) ;
'int __cdecl CSekureStorage::_VectorToSC(class CArray<struct
TNameItem,struct TNameItem &>,unsigned char,unsigned char)' : cannot convert
parameter 1 from 'class CArray<struct TNameItem,struct TNameItem &>' to
'class CArray<struct TNameItem,struct TNameItem &>'
No copy constructor available for class 'CArray<struct TNameItem,struct
TNameItem &>'
Don't understand???
//Declaration
template <class T, class TP>
int _VectorToSC(CArray<T, TP> ItemVec, UCHAR HFileID, UCHAR LFileID);
// implementation
template <class T, class TP>
int CSekureStorage::_VectorToSC(CArray<T, TP> ItemVec, UCHAR HFileID, UCHAR
LFileID)
{
........
}
----------------------------------------------------------------------------
---------------------------
CArray<TNameItem,TNameItem&> m_NameItemVec;
_VectorToSC(m_NameItemVec, 0x3F, 0x02) ;
'int __cdecl CSekureStorage::_VectorToSC(class CArray<struct
TNameItem,struct TNameItem &>,unsigned char,unsigned char)' : cannot convert
parameter 1 from 'class CArray<struct TNameItem,struct TNameItem &>' to
'class CArray<struct TNameItem,struct TNameItem &>'
No copy constructor available for class 'CArray<struct TNameItem,struct
TNameItem &>'
Don't understand???