Boost logo

Boost Users :

From: Russell Hind (rhind_at_[hidden])
Date: 2004-07-22 11:18:08

Vladimir Prus wrote:
> I believe you can't do it portably.... on Linux, for example, there's O_EXCL
> flag to the 'open' system call, but you can't specify this flag via
> boost::fs. In fact, this is related to temporary file discussion we had on
> dev list before.
> Probably, it means we need a function in boost::fs to do what you ask for.

I think it would be useful, although I'm not sure how you could
integrate it with std streams? If you use CreateFile in Win32 with
CREATE_NEW (which fails if exists), can you construct a std::ofstream
with that handle? (I guess it would be similar in linux)?



Boost-users list run by williamkempf at, kalb at, bjorn.karlsson at, gregod at, wekempf at