Author |
Topic |
|
accord
Whole Tomato Software
United Kingdom
3287 Posts |
Posted - Aug 06 2006 : 3:42:54 PM
|
class cParent { int banana; };
template <class T> class cTest : public cParent { public: int apple; };
cTest <int> *p = new cTest <int>; p->
Only apple appears in the completion listbox, but banana should be also...
|
|
jpizzi
Tomato Guru
USA
642 Posts |
Posted - Aug 06 2006 : 11:59:10 PM
|
This is working for me in VS 2005 with VAX 1530. Are you trying this in a header or a cpp? Also, I am assuming C++.
I looked to some of your previous posts, and see that you are using VS 2005. Do you have VAX 1530, or a different version? If a different version, is changing to 1530 an option? |
Joe Pizzi |
|
|
accord
Whole Tomato Software
United Kingdom
3287 Posts |
Posted - Aug 07 2006 : 12:42:04 PM
|
Yes I'm using VS2005 and VAX 1530.
I have placed the class definitions also into the cpp file.
|
|
|
jpizzi
Tomato Guru
USA
642 Posts |
Posted - Aug 07 2006 : 11:02:24 PM
|
Even in the cpp, this works for me. One thing I did notice, however, is that banana is a private member attribute. I remember some discussion about whether or not we should list private member attributes in such a situation, but don't remember the outcome. Certainly the fact that mine is working and yours is not makes that conversation kind of moot, since I couldn't find an option to select the behavior.
Do you have "Get content from default Intellisense" (Visual Assist/Options/Text Editor/Listboxes) enabled? I do not. |
Joe Pizzi |
|
|
|
Topic |
|