[iostreams] calling sink member function

Hi,
The following used to compile with MinGW GCC 3.4.2:
<code>
#include

Daniel Schlyder wrote:
Hi,
The following used to compile with MinGW GCC 3.4.2:
<code> #include
#include #include <iostream>
class my_sink : public boost::iostreams::sink { public:
std::streamsize write(char const *, std::streamsize size) { return size; }
void foo() { std::cout << "foo() called" << std::endl; } };
int main() { boost::iostreams::stream_facade
out; out->foo();
return 0; } </code>
I'm embarassed to say I removed this accidentally. You can do: out.component()->foo(). But I'll restore the previous syntax ASAP. Jonathan

Jonathan Turkanis:
I'm embarassed to say I removed this accidentally. You can do:
out.component()->foo().
But I'll restore the previous syntax ASAP.
Looking forward to it. Thanks. -- Daniel Schlyder http://bitblaze.com/
participants (2)
-
Daniel Schlyder
-
Jonathan Turkanis