Boost logo

Boost :

From: Noel Yap (Noel.Yap_at_[hidden])
Date: 2003-05-07 07:56:31


Aleksey Gurtovoy wrote:
> > You didn't say, and no-one subsequently asked, but how does that work
> > then? "!0" as a template argument?
>
> Oh, that one is easy - !0 is simply a compile-time bool constant :).
>
> > What, roughly, does your ref_ptr class look like?
>
> Not quite roughly, but here -
> http://www.meta-comm.com/engineering/resources/ref_ptr.h.

I might've missed it, but I didn't see a conversion operator from
ref_ptr< T, !0 > to ref_ptr< T >. Is this by design?

Thanks,
Noel


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk