Hello
We're using boost foreach macros in our projects, but Visual Assist doesn't handle it well.
In StdAfx.h we have :
#include <boost/foreach.hpp>
#define foreach BOOST_FOREACH
And in code we have for example :
std::list<stObjectInfo> &lstObjs = ...;
foreach ( stObjectInfo &objInfo, lstObjs )
{
...
objInfo.
}
When I want to VA show me suggestion list for object objInfo, VA show msg "Type of expression to the left of . or -> is not class struct or union."
I know that templates under the macro BOOST_FOREACH is realy complex, but isn't there any way to tell VA that objInfo has some type ? (for example in comments) :
foreach ( stObjectInfo &objInfo, lstObjs ) //VA: stObjectInfo &objInfo
Thanks for reply
Ludek Vodicka