Subject: Re: [boost] [filesystem] scoped_file feature request?
From: Olaf van der Spek (ml_at_[hidden])
Date: 2011-10-12 08:13:40
On Wed, Oct 12, 2011 at 2:11 PM, Stewart, Robert <Robert.Stewart_at_[hidden]> wrote:
> It is enough to have a function that creates a zero-length, temporary file and returns its pathname. That probably fits better with Filesystem's design anyway. Such a function would have to implement a loop that calls unique_path(), tries to create a file with that pathname, and repeats some number of times until the creation succeeds. Then, it would close the file and return the pathname. That code is non-trivial and would be a helpful addition.
That doesn't seem right either. It shouldn't be necessary to close and
reopen the file.