Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[cdt-dev] Anonymous object content assist fails

I have created a class named Square and trying to access its functions, by
creating an anonymous object. But the content assist facility is not
invoked. Is content assist of CDT not supported for anonymous objects.

For example

  class Square
     int side;
     public :
       void setSide(int pSide)
          side = pSide;

       int area()
         return side * side;

  int main()
    Square(). //Content assist is not getting invoked here either
automatically or pressing CTRL + SPACE. Both fail
    Square mySquare;
    mySquare. //Content assist successfully works here

  What's the issue. If I need to add this facility where to poke around.
This email (including any attachments) is intended for the sole use of the
intended recipient/s and may contain material that is CONFIDENTIAL AND
PRIVATE COMPANY INFORMATION. Any review or reliance by others or copying or
distribution or forwarding of any or all of the contents in this message is
STRICTLY PROHIBITED. If you are not the intended recipient, please contact
the sender by email and delete all copies; your cooperation in this regard
is appreciated.

Back to the top