Boost logo

Boost :

From: shunsuke (pstade.mb_at_[hidden])
Date: 2007-11-02 00:20:45


Corrado Zoccolo wrote:
> Hi
> I've uploaded a new version of the library in the vault: *
> http://tinyurl.com/2og6st*
> It now provides also a new class (poly<T>) that maintains the never-empty
> guarantee.
> poly<T> and optional_poly<T> share a large part of their implementation, so
> I think it is sound to have both in the same library.

Hmm, it seems inherent that poly is DefaultConstructible(Nullable), IMHO.

Why not introduce `nonnullable`?
nonnullable< poly<T> >
nonnullable< boost::shared_ptr<T> >

BTW, poly<void> can't be "any"?

Regards,

-- 
Shunsuke Sogame

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