Allen Cronce wrote:
As indicated before, I don't know what other libraries, if any, depend on mapped_file, so this fix might not be the right one. I'm hoping that whoever maintains Iostreams will look into this issue and comment.
Further, I think that the unit test for Iostreams should be extended to catch this kind of problem. Basically the test code should do something like the code from my original post. That is, it should create a test data file, then open it as a mapped file for writing.
I'm kind of new to boost, so I'm not clear on the process for dealing with bugs or what my role should be. Should I report this issue on http://svn.boost.org/trac/boost/report? Or is the expectation that I should be more proactive and fix it myself in a bleeding edge branch?
I would recommend creating a new ticket which describes the problem at: http://svn.boost.org/trac/boost Then I would attach a patch of your proposed changes to the ticket with your proposed solution (and test code).