Can't return stream
Ivan Martinez
ex08@kalman.iau.dtu.dk
Fri May 12 02:34:00 GMT 2000
Hello all,
I have a function where I want to return an stream:
iostream Class::ErrorsReport() const
{
iostream ErrorsReport;
...
return ErrorsReport;
}
I tried with iostream, stream, strstream, ostrstream..., declaring the
function const and non const, and I always get:
.../g++-3/streambuf.h:128:'ios::ios(const ios&)' is private
...: within this context
(Last one refers to return keyword line)
Isn't it possible to return a copy of a stream?.
--
Ivan Martinez (Rodriguez)
BEng in Software Engineering - MEng student
http://www.student.dtu.dk/~u990873
"Got fabes?"
More information about the Gcc-help
mailing list