C++ (Qt) istream *str= new ifstream;str= dynamic_cast<ifstream *>(str);str->open("foo_file.txt"); //<----------ERROR
C++ (Qt)std::ifstream strm("foo_file.txt");
C++ (Qt)istream * istr = new ifstream;ifstream * strm = dynamic_cast<ifstream *>(istr);strm->open("foo_file.txt");