19 May
2005
19 May
'05
7:54 a.m.
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@yandex.ru