[C++-sig] Re: class_, HeldType, and NonCopyable...please help !!

David Abrahams dave at boost-consulting.com
Thu Mar 10 15:41:02 CET 2005


"Nicolas Lelong" <nico_ml at mgdesign.org> writes:

> Hi,
>
> off the top of my head, my answers may be wrong, here we go !
>
>> class_<Node, Node *, boost::noncopyable> node("Node", no_init);
>
> fair enough, the noncopyable is OK, I'd rather let BPL decide the
> HeldType, 

Uh, yeah.  Using a raw pointer as the HeldType is playing with fire.


-- 
Dave Abrahams
Boost Consulting
www.boost-consulting.com




More information about the Cplusplus-sig mailing list