quote:Original post by petewood
As frunny says, change the function to:
void ReportType(const T& = T())
It's a kludge but it works.
Not sure what it would be useful for (c:
For this:
// used to call Pop<int>(); untill noticed problemtemplate<class T> void Pop(){ spos -= sizeof(T); delete (T*)svars[spos]; }// so im goin call it like this then:int t; // so type and size can be knownPop(t);
[edited by - Craazer on July 8, 2003 1:01:23 PM]