stream + file_descriptor_source + closing
Hi,
I'm trying to use boost::iostreams for a project I'm writing and I have
a problem:
It seems that the destructor of
boost::iostreams::streamboost::iostreams::file_descriptor_source closes
the file descriptor.
I really need to be able to close this file descriptor manually and I
can't find any way to do it.
Note that file_descriptor_source has a constructor parameter specifying if
the descriptor should be closed in file_descriptor_source destructor or
not. It perfectly works - it's boost::iostreams::stream destructor that
forces closing the description, not file_descriptor_source destructor.
A short code illustrating this problem (for Linux):
--- 8< ---
#include <iostream>
#include
participants (1)
-
Tomasz Noiński