Boost logo

Boost Users :

From: Jonathan Turkanis (technews_at_[hidden])
Date: 2005-05-12 15:19:39


Daniel Schlyder wrote:
> Hi,
>
> The following used to compile with MinGW GCC 3.4.2:
>
> <code>
> #include <boost/iostreams/concepts.hpp>
> #include <boost/iostreams/stream_facade.hpp>
>
> #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<my_sink> 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


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net