Boost C++ Libraries: Ticket #4104: Declaration prevents Visual Studio 2008 from auto-completing shared_ptr https://svn.boost.org/trac10/ticket/4104 <p> A forward declaration for shared_ptr in boost/exception/exception.hpp confuses Visual Studio's Intellisense parser, preventing it from doing auto-completion for any boost::shared_ptr objects. This can be fixed by replacing "&lt;class&gt;" with "&lt;class T&gt;" in the forward declaration (as shown in the attached patch file). </p> <p> Strictly speaking, this is not a bug in Boost, but in Visual Studio; but unless there's a good reason to use "&lt;class&gt;" in the forward declaration rather than "&lt;class T&gt;", this change would be very helpful to all Visual Studio users if you made this change. </p> <pre class="wiki">--- boost_1_40_0-old/boost/exception/exception.hpp 2009-07-22 16:55:50.000000000 -0400 +++ boost_1_40_0-new/boost/exception/exception.hpp 2010-04-15 15:27:39.213956500 -0400 @@ -131,7 +131,7 @@ class exception; - template &lt;class&gt; + template &lt;class T&gt; class shared_ptr; namespace </pre> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/4104 Trac 1.4.3 Edward Loper <edloper@…> Thu, 15 Apr 2010 19:56:55 GMT attachment set https://svn.boost.org/trac10/ticket/4104 https://svn.boost.org/trac10/ticket/4104 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">exception_hpp.diff</span> </li> </ul> <p> udiff for boost/exception/exception.hpp </p> Ticket Steven Watanabe Sat, 17 Apr 2010 17:57:00 GMT <link>https://svn.boost.org/trac10/ticket/4104#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/4104#comment:1</guid> <description> <p> VS 2010 can handle it fine. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>anonymous</dc:creator> <pubDate>Sun, 02 May 2010 13:26:47 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/4104#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/4104#comment:2</guid> <description> <p> Replying to <a class="ticket" href="https://svn.boost.org/trac10/ticket/4104#comment:1" title="Comment 1">steven_watanabe</a>: </p> <blockquote class="citation"> <p> VS 2010 can handle it fine. </p> </blockquote> <p> True; but unfortunately my current development environment requires that I use Visual Studio 2008. And I'm sure I'm not the only one in that situation. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Emil Dotchevski</dc:creator> <pubDate>Fri, 11 Jun 2010 22:18:31 GMT</pubDate> <title>status changed; resolution set https://svn.boost.org/trac10/ticket/4104#comment:3 https://svn.boost.org/trac10/ticket/4104#comment:3 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">fixed</span> </li> </ul> Ticket