Boost logo

Boost Users :

From: eg (egoots_at_[hidden])
Date: 2007-08-22 21:33:03


Peter Leopold wrote:
> Dear Boost Users,
>

> I started with kubuntu-feisty's boost 1.33.1. but was unable to execute
> the first main in the iostreams tutorial Overview (2.1.1). The
> showstopper was the compiler error <file_sink> not defined in scope.
>
> % g++ test.cpp
> test.cpp: In functin 'int main()':
> test.cpp::9: error: 'file_sink' was not declared in this scope
> . . . several more errors.
>

try changing the offending line to:

        io::stream_buffer<io::file_sink> buf("log.txt");

In other words, its a documentation bug... the file_sink is in the
boost::iostreams namespace as well.


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