Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

template serialization

Status
Not open for further replies.

tzzdvd

Programmer
Aug 17, 2001
52
IT
How can I serialize a class template?

.h
template <class xxx> class CInterval:public CObject
{
DECLARE_SERIAL(CInterval)
...
}
.cpp
IMPLEMENT_SERIAL(CInterval, CObject,1)
What should I write instead of CInterval?

I have also a derived class
CIR_Interval:public CInterval<double> to serialize
IMPLEMENT_SERIAL(CIR_Interval, CInterval<double>,1)
doesn't work

Thank's
Davide
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top