ofstream to ofstream assigment..??


I want to assign a ofstream to a ofstream of a routine as shown below.
//CLPOut is also of type ofstream
bool Clipper::SetInstanceParameters(ofstream & p1)
{ //Initialise before operation..,each Instance values ..
CLPOut= p1;
// CLAreaOut= p2;
return true;
}
it fails with error
[bcc32 Error] clipper.cpp(2300): 'operator ios::=(const ios &)' is not accessible in function operator ofstream::=(const ofstream &)

std::ofstream is not copyable by design. Consider whether it would be sufficient to move it instead.
(Get a C++11 compiler.)

Some related discussion here:
http://www.cplusplus.com/forum/general/258194/
Last edited on

Thanks to salem ,mbozzi..
I understand the compiler abuses now.
Topic archived. No new replies allowed.