Boost C++ Libraries: Ticket #43: shared_ptr and use of undefined type https://svn.boost.org/trac10/ticket/43 <pre class="wiki">class A; class B { public: B(); // ~B(); private: boost::shared_ptr&lt;A&gt; a_p; }; B b; // fails to compile The above line fails to compile with the message "use of undefined type 'A'". It compiles successfully if B has an explicite destructor. i.e. the line "// ~B();" is uncommented. I am using MSVC 6. </pre> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/43 Trac 1.4.3 Peter Dimov Wed, 28 May 2003 12:00:40 GMT status changed https://svn.boost.org/trac10/ticket/43#comment:1 https://svn.boost.org/trac10/ticket/43#comment:1 <ul> <li><strong>status</strong> <span class="trac-field-old">assigned</span> → <span class="trac-field-new">closed</span> </li> </ul> Ticket