Why can't Visual Assist suggest the correct variable name in the following example:
struct FOO
{
char data[10];
};
struct BAR
{
char data[10];
};
void zero_foo(FOO &foo)
{
memset(&foo,sizeof(foo));
}
void zero_bar(BAR &bar)
{
memset(&bar,sizeof(bar));
}
void do_stuff(void)
{
FOO tmp_foo;
BAR tmp_bar;
zero_foo(tmp)// <- Typing tmp suggest tmp_bar see attached suggestion see attached image.
}
The standard Visual Studio 2008 intellisense offers tmp_foo no matter what order the variables are declared in. Could Visual Assist do the same?
http://www.flickr.com/photos/25467336@N03/3614313448/