B
barthelemy.von.haller
Hi,
I am trying to return the standard output from a method like that :
ostream *XXX::GetDebugStream() {
// return debugFile; // I don't want that, but it works
// return stdout; // this returns : error: cannot convert
`_IO_FILE*' to `std:stream*' in return
// return cout; // this returns : invalid conversion from
`void*' to `std:stream*'
}
I tried to return stdout or cout but it doesn't work. I understand why
it doesn't work with cout but not with stdout.
Could someone explain me what I am doing wrong ?
Thanks in advance
Barth
I am trying to return the standard output from a method like that :
ostream *XXX::GetDebugStream() {
// return debugFile; // I don't want that, but it works
// return stdout; // this returns : error: cannot convert
`_IO_FILE*' to `std:stream*' in return
// return cout; // this returns : invalid conversion from
`void*' to `std:stream*'
}
I tried to return stdout or cout but it doesn't work. I understand why
it doesn't work with cout but not with stdout.
Could someone explain me what I am doing wrong ?
Thanks in advance
Barth