C++Intellisense for protected member variables

Sysprogs forums Forums VisualGDB C++Intellisense for protected member variables

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #9613
    Ophidian14
    Participant

    Consider the following:

    struct Foo
    {
      int a_;
    };
    
    
    class Base
    {
    protected:
      Foo f_;
    public:
      void Bar()
      {
      }
    };
    
    
    struct Derived : public Base
    {
      int foo1_;
    
      void Baz()
      {
        this->
      }
    };

    Upon hitting the this-> inside Derived::Baz, I don’t get f_ as a suggestion.  If I then type f_. anyway, I do get a_. as a suggestion.  If I change Foo f_ to be public instead of protected then it works.

     

    • This topic was modified 8 years ago by Ophidian14.
    #9630
    support
    Keymaster

    Hi,

    Thanks, we have managed to reproduce and fix this. Please try this build: http://sysprogs.com/files/tmp/VisualGDB-5.2.14.1318.msi

     

    #9673
    Ophidian14
    Participant

    Thank you!!!   It works!!

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.