VERSION|0.4.7.1|SUBJECT|boost shared_ptr with vs.net 2003 intellisense|CONTENT|[b]Problem:[/b]
Intellisense doesn&#039;t work with boost::shared_ptr.  I am using boost version 1.32.

[b]Longer description:[/b]
Here is a code sample:

[code]class foo
{
public:
	bool func() { return true; };
};

boost::shared_ptr&lt;foo&gt; pfoo;
pfoo.get();
pfoo-&gt;func();[/code]

No intellisense pops up after the . or the -&gt;.  I love shared_ptr, but having no intellisense makes things really annoying.

[b]Cause:[/b]
I think it&#039;s because VS.Net does not look at the appropriate header files.  It probably could do a better job and maybe it does in VS 2005, but then again, perhaps it would slow it down to try to parse through many more files?
As a side note, I tried [url=http://www.wholetomato.com/]Visual Assist[/url] and it sort of worked, but sometimes it actually popped up the [b]wrong[/b] intellisense, whoops!  Also, I did notice that it had to parse through a lot of files.

[b]Fix:[/b]
At first glance, you would think that adding boost\shared_ptr.hpp to the project (add exiting item) would solve the program.  It ALMOST does, but you need to add that file AND boost/detail/shared_ptr_nmt.hpp.  At least, that is what I have to do with boost 1.32 to get it to work.

Hope it works for you too!|CATEGORIES|2|DATE|1124949600