I am not sure what the problem is exactly, but something that has to do with infile seems to be causing this? Any workaround for this? Do I have to download the latest version of mingw or something?
ifstream inFile("testdoc.txt");
std::ifstream currentDocument = infile;
c:\qt\qt5.2.1\tools\mingw48_32\lib\gcc\i686-w64-mingw32\4.8.0\include\c++\bits\ios_base.h:786: error: 'std::ios_base::ios_base(const std::ios_base&)' is private ios_base(const ios_base&);
infilemay have been passed as a reference, butifstream f = infilestill attempts to copy-construct it. Also, the error doesn't point to that line because it's pointing to the private copy-constructors ofios_baseand the stream buffer, the things which don't actually allow a copy. - 0x499602D2