Boost logo

Boost Users :

From: Vladimir Krasovsky (vkrasovsky_at_[hidden])
Date: 2005-05-19 02:54:02


Hello Arne,

Wednesday, May 18, 2005, 7:38:20 PM, you wrote:

> scoped_ptr cannot be used with incomplete types, unfortunately, and thus
> is not available for use in the pimpl idiom.

Please read http://www.boost.org/libs/smart_ptr/scoped_ptr.htm . Near
the end of page you can see
"One common usage of scoped_ptr is to implement a handle/body (also
called pimpl) idiom which avoids exposing the body (implementation) in
the header file."

Examples are also there.

-- 
Best regards,
 Vladimir                            mailto:vkrasovsky_at_[hidden]

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