I am consistently having problems with Intellisense not recognizing inheritance hierarchies very well. One specific instance that I run into this is when calling a public or protected function from a parent class. For example:
SomeFunction();//<---- Intellisense doesn't like this
Error: cannot initialize object parameter of type Parent with an expression of type Child
Do you have any idea as to what is happening here? Am I missing some crucial setting? This is a GNU Make Linux project.
I apologize for being unclear, I missed the “public:” declaration. The parent functions in this case are indeed public so are accessible to the derived classes. The code compiles and runs correctly, it’s only intellisense that gives me issues on this.
No problem. Most likely this is caused by some other declaration or setting. Please try getting a minimal example that triggers the problem on a newly created project and share it with us so that we could see what is going on.