[Boost-bugs] [Boost C++ Libraries] #4104: Declaration prevents Visual Studio 2008 from auto-completing shared_ptr

Subject: [Boost-bugs] [Boost C++ Libraries] #4104: Declaration prevents Visual Studio 2008 from auto-completing shared_ptr
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2010-04-15 19:56:21


#4104: Declaration prevents Visual Studio 2008 from auto-completing shared_ptr
-------------------------------------------------+--------------------------
 Reporter: Edward Loper <edloper@…> | Owner: emildotchevski
     Type: Bugs | Status: new
Milestone: Boost 1.43.0 | Component: exception
  Version: Boost 1.42.0 | Severity: Problem
 Keywords: shared_ptr Visual Studio |
-------------------------------------------------+--------------------------
 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 "<class>" with "<class T>" in the forward declaration (as shown
 in the attached patch file).

 Strictly speaking, this is not a bug in Boost, but in Visual Studio; but
 unless there's a good reason to use "<class>" in the forward declaration
 rather than "<class T>", this change would be very helpful to all Visual
 Studio users if you made this change.


 {{{
 --- 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 <class>
 + template <class T>
      class shared_ptr;

      namespace
 }}}

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/4104>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:02 UTC