Boost logo

Boost Users :

From: Dale McCoy (dalestan_at_[hidden])
Date: 2006-06-08 10:06:01


On 6/2/06, Gottlob Frege <gottlobfrege_at_[hidden]> wrote:
> 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


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net