
11 Mar
2004
11 Mar
'04
7:17 p.m.
Beman Dawes wrote:
At 08:45 AM 3/11/2004, Neal D. Becker wrote:
I am using the following common idiom:
link (name, name.old) rename (name.new, name)
To update a file atomically
I'm interested in using boost::filesystem instead of libc, but I didn't find any equivalent of link in filesystem. Did I miss it?
No, it isn't provided.
Should it be added?
It is messy for directories on Windows. That's been the holdup. There are also some other Boost.Filesystem enhancements which have higher priority. So unless someone else wants to work up a proposed Windows implementation, it won't happen anytime soon.
You mean no functions can be added to Boost::Filesystem unless they are supported on all systems? I'm surprised (and disappointed).