
Stefan Seefeld wrote:
Dylan Trotter wrote:
The more I think about this problem, the more I think it's about stream buffers instead of the actual streams.
Ok, that seems to make sense for your use case, but then it's completely unrelated to file management, and shouldn't even be part of boost::filesystem (but rather boost::iostream).
You're absolutely right about that. I wasn't suggesting what library it should belong to. Regardless, though, the temporary file facilities should be organized together and not strung out over a number of different libraries.
Files and streams are completely orthogonal concepts and should be treated that way. Temporaries are no exception.
It sounds like you have a good idea of the concepts involved, perhaps you could enlighten me as to their nature. Dylan