Opened 13 years ago
Closed 12 years ago
#4104 closed Bugs (fixed)
Declaration prevents Visual Studio 2008 from auto-completing shared_ptr
Reported by: | Owned by: | Emil Dotchevski | |
---|---|---|---|
Milestone: | Boost 1.43.0 | Component: | exception |
Version: | Boost 1.42.0 | Severity: | Problem |
Keywords: | shared_ptr Visual Studio | Cc: |
Description
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
Attachments (1)
Change History (4)
by , 13 years ago
Attachment: | exception_hpp.diff added |
---|
comment:2 by , 12 years ago
Replying to steven_watanabe:
VS 2010 can handle it fine.
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.
comment:3 by , 12 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
udiff for boost/exception/exception.hpp