Jump to content
  • Advertisement
Sign in to follow this  
bluntman

Unity Intellisense and boost::shared_ptr

This topic is 4460 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I am using VC++2005 EE with the Boost library and I can't get Intellisense to work with shared_ptr. I have tried adding the shared_ptr.hpp and shared_ptr_nmt.hpp files to my project as I found suggested in a Google search on the subject, but that didn't help (also the suggestion was aimed at VS2003 users). I also found this thread but it didn't help any, and was also relating at VS2003 not 2005. Does anyone have a way to make Intellisense parse through the operator->() and operator*() functions properly to make it work? Thanks! P.S. I also get no Intellisense popup for the shared_ptr object itself which seems strange.

Share this post


Link to post
Share on other sites
Advertisement
It works for me, however I've had lots of problems with intellisense aswell. Usually it has been due to bad includes and naming etc.
See if you can get it working in a clean project with one file just including shared_ptr.hpp

I'm sorry if this isn't very helpful, but my knowlegde on this is very limited.

EDIT: And yes, I'm also running the 2005 Express Edition, same as yours [smile]

Share this post


Link to post
Share on other sites
It works for me (well, as well as any other intellisense) on VS 2005 EE.

Try deleting the .ncb file for your project/solution (close the IDE, delete the file, and reopen the IDE).

C++ is really nasty to parse, and "simple" errors can hose the intellisense database (the ncb file).

Share this post


Link to post
Share on other sites
yeah, sometimes intellisense conks out and you have to clean everything up b(VC++ 2005 pro here)

make sure you do "save all" with no syntax errors so intellisense can parse through everything again.

Share this post


Link to post
Share on other sites
Yeah it just started working after I saved, closed VS and reloaded. Hmmpf... hope I don't have to do that everytime I use a new class :/
Thanks for replies.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!