
Beman Dawes wrote:
"Tomek" <at@tru.pl> wrote in message news:Pine.LNX.4.58.0509071815370.26925@rex.anfa.pl...
Hi,
Can you add to boost::filesystem namespace class for temporary files which will remove file on object destruction ?
I prepared same sample code : http://psycho.pl/pub/src/tmpfile.cc
If you say that this is ok, I will write it using boost library and also working on win32.
I'm definitely interested, although the specification is of more interest than the actual code. I'm particularly interested in resolving any differences between POSIX and Windows, and avoiding security issues.
It is a bit surprising that this is the first request I can recall for a temporary file facility. Seems like a natural addition.
I've been planning such a facility for iostreams, but filesystem seems like a better home for it, especially if I don't have to code it. ;-) temp_file would be used extensively by the iostreams (and serialization?) tests.
--Beman
Jonathan