Boost logo

Boost :

Subject: Re: [boost] Using Boost without confusing Intellisense
From: Mateusz Loskot (mateusz_at_[hidden])
Date: 2011-02-10 03:51:08


On 09/02/11 17:53, Barend Gehrels wrote:
> 9-2-2011 17:29, Matthew Chambers wrote:
>> Hi,
>>
>> I use many Boost libraries, develop with MSVC (currently 2008), and
>> build both my project and its Boost dependencies with Boost.Build. The
>> one thing that's always frustrated me using boost is its tendency to
>> confuse MSVC's Intellisense. I don't know if this holds true for other
>> IDEs with an Intellisense-like capability, but heavy use of
>> boost::shared_ptr and BOOST_FOREACH in particular seem to confuse
>> Intellisense in a large project. MSVC never knows what to show when
>> dereferencing a shared_ptr and it never defines the instance variable
>> in BOOST_FOREACH.
>>
>> I came up with two fairly simple workarounds for this but I'm
>> interested to hear if there's a better solution. If not, I'm wondering
>> if the workarounds could go in boost itself. (...)
>
> I had the same experience with MSVC 2005 and 2008, developing
> Boost.Geometry. We don't use shared_ptr there, and BOOST_FOREACH
> neither, but still I had this issue (it hangs forever).
>
> Anyway, it is relatively easy to solve by turning off Intellisense
> completely...

I agree with Barend,

For me, it's impossible to use IS with Boost in Visual Studio 2005
which crashes every time I trigger completion.
However, Visual Studio 2010 works well for me.

Best regards,

-- 
Mateusz Loskot, http://mateusz.loskot.net
Charter Member of OSGeo, http://osgeo.org
Member of ACCU, http://accu.org

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk