tags:

views:

311

answers:

1

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);
+8  A: 

This may happen if you try to copy an fstream object (which is not copy-able).

Igor Krivokon
Oh. Than I know what I did. Thanx.
Keand64