[Solved] How to call functions from parent class in C++? [duplicate]


Calling functions from parent class directly is easy as the following:

std::stringstream myobj;
myobj << "Something..."
myobj.std::iostream::flush();

Above example calls flush() directly from std::iostream (which is a typedef of std::basic_iostream<char> ). It is also possible to member functions from parent class of parent class:

myobj.std::ostream::flush();

solved How to call functions from parent class in C++? [duplicate]