T O P I C R E V I E W |
nooewt |
Posted - Aug 19 2010 : 12:49:03 PM IDE: VS2008 Version 9.0.30729.1 VAX: 10.6.1814.0 Language: C++ I have a struct defined within the scope of an unnamed namespace. Using an instance of the struct within the same file, below the definition, VAX offers no Suggestions/Listboxes for members of the struct.
I commented out the unnamed namespace scoping and the Suggestions were offered.
There appears to be a bug related to unnamed namespace scoped structures. |
3 L A T E S T R E P L I E S (Newest First) |
accord |
Posted - Aug 24 2010 : 08:08:02 AM Thank you for sharing this, I'm glad it works with Visual Assist's parser. |
nooewt |
Posted - Aug 23 2010 : 09:50:07 AM I had used the struct outside of the namespace: namespace { struct S10 { char c1[1]; }; } int main(int argc, char* argv[]) { S10 s10; s10.c1; return 0; };
But, in this simple example, the Suggestions showed up. Regarding the original post, I had toggled commenting/uncommenting the unnamed namespace several time and the behavior was repeated each time. Ambiguity was not the problem as the structs were most definitely uniquely named.
I had Get Content from Default Intellisense set to on. This may be part of the reason, but I'm not sure. The above simple example worked with and without using Intellisense content.
I've just turned off using content from Intellisense in the project I was having trouble with and now VAX Listbox/Suggestion is working.
I'll chalk this up to poor Intellisense behavior.
|
accord |
Posted - Aug 20 2010 : 4:49:55 PM Can you please provide a simply example? I tried to create a simple example, but it worked with VA1830:
|
|
|