I have a C++ class which, in short, has a declaration which looks like this:
class Pico {
...
Document document; // Custom Document class
...
}
Later I call one of the public member functions of the Document class:
this->document->enableEditing();
However, IntelliSense underlines this and notes that “expression must have pointer type”. What can I do to fix this?
You want
The
Documentmember is not a pointer, therefore you need.in place of->