
8 Jun
2006
8 Jun
'06
2:06 p.m.
On 6/2/06, Gottlob Frege
Is there really no way to templatize
a) a zero argument constructor
It's been a long time since I've used default values for templates in my code, but I think this should work: class foo{ template<typename __dummy=int>foo(); };
b) a destructor
The above template<typename __dummy=int> trick may work here too.
I'm trying to delay the compile of the functions until everything is known.
I'm not following. If they're in a template class, they can't be compiled until everything is known, regardless. If they aren't in a template class, then everything is always known. Dale