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:
class Parent {
void SomeFunction();
}
class Child : public Parent{}
Child::AnotherFunction()
{
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.