
16 Sep
2005
16 Sep
'05
2:02 p.m.
Hi all, This is my first post, so please let me know if I am doing anything wrong. I am having trouble using the new iostream headers in Boost 3.3. I cannot get simple Sinks to function correctly. Take the following code for example: namespace bio = boost::iostreams; int main() { typedef bio::streambio::null_sink nullsink; nullsink out; out << "Ignore me"; } This code always results in a runtime assertion failure: /usr/local/include/boost/iostreams/detail/optional.hpp:54: failed assertion `initialized_' What am I doing wrong? Any help would be greatly appreciated. Cheers, Marius