|
Boost : |
From: Peter Dimov (pdimov_at_[hidden])
Date: 2001-12-13 08:45:04
From: "rogeeff" <rogeeff_at_[hidden]>
> Hi, all
>
> I have a question to BCC experts:
>
> BCC seems to have a problem compiling following example:
>
> #include <boost/smart_ptr.hpp>
>
> class A {
> public:
> ~A();
> private:
> struct Impl;
> boost::scoped_ptr<Impl> m_pimpl;
> };
>
> void foo()
> {
> boost::scoped_ptr<A> a;
> }
>
> What is the reason? How to fix it? Is it incorrect code or BCC bug?
> MSVC and Sun Forte C++ compile it.
Looks like a BCC bug to me. Use a raw pointer or
http://groups.yahoo.com/group/boost/files/impl_ptr/impl_ptr.html
-- Peter Dimov Multi Media Ltd.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk