
29 Apr
2010
29 Apr
'10
11:10 p.m.
I have a seekable iostream device with the tag set to : typedef boost::iostreams::input_seekable catagory; If I have not defined the functions get and seek, it will not compile, which is expected, so far so good. But when I called it like this : mydevice test("somefile.txt"); boost::iostreams::stream<mydevice> buf(test); buf.seekg(0); it never enters my seek function, which I would expect. I am sure the solution must be obvious. Any pointers here ?