When I compile a program in C++ (that is too large to simply cut abd paste here), I get this error:
c:\program files\microsoft visual studio 9.0\vc\include\fstream(934) : error C2248: 'std::basic_ios<_Elem,_Traits>::basic_ios' : cannot access private member declared in class 'std::basic_ios<_Elem,_Traits>'
What does this error mean, what could've caused it, and how can I solve it?
EDIT: Apparently, the basic reasons for the error were a couple of functions like this:
void FileWrite(std::fstream file);
Which I fixed by changing to this:
void FileWrite(std::fstream& file);