Intellisense fails for boost::shared_ptr with Boost 1.40.0 in Visual Studio 2008

Posted by Edward Loper on Stack Overflow See other posts from Stack Overflow or by Edward Loper
Published on 2010-04-05T20:14:55Z Indexed on 2010/04/05 20:23 UTC
Read the original article Hit count: 523

I'm having trouble getting intellisense to auto-complete shared pointers for boost 1.40.0. (It works fine for Boost 1.33.1.) Here's a simple sample project file where auto-complete does not work:

#include <boost/shared_ptr.hpp>

struct foo
{ bool func() { return true; }; };

void bar() {
    boost::shared_ptr<foo> pfoo;
    pfoo.get();      // <-- intellisense does not autocomplete after "pfoo."
    pfoo->func();    // <-- intellisense does not autocomplete after "pfoo->"
}

When I right-click on shared_ptr, and do "Go to Definition," it brings be to a forward-declaration of the shared_ptr class in . It does not bring me to the actual definition, which is in However, it compiles fine, and auto-completion works fine for "boost::." Also, auto-completion works fine for boost::scoped_ptr and for boost::shared_array.

Any ideas?

© Stack Overflow or respective owner

Related posts about intellisense

Related posts about boost