[iostreams] Seeking with using stream<file_descriptor>::seekp() failes

Hello Why do I get 'debug assertion failed: initialized_' when I try to seek on a boost::filesystem::stream<file_descriptor> ? I also tried with my own class seekable_fd: public device<seekable> { protected file_descriptor file_d; //.... }; to be use the device is seekable, and I get the same assert. I have boost 1.44.0, VS 2008, Win7 Thank you, Timothy Madden

On 27.09.2010 13:07, Timothy Madden wrote:
Hello
Why do I get 'debug assertion failed: initialized_' when I try to seek on a boost::filesystem::stream<file_descriptor> ?
I also tried with my own
class seekable_fd: public device<seekable> { protected file_descriptor file_d; //....
};
to be use the device is seekable, and I get the same assert.
It turns out this is the behavior one gets when trying to seek on a closed file ... somehow I managed to implicitly close the file with some wrapper stream that was using it, before the seek ... Timothy Madden
participants (1)
-
Timothy Madden