This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Can't return stream


	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?"

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]