Boost logo

Boost :

From: Stefan Slapeta (stefan_nospam__at_[hidden])
Date: 2004-10-08 17:38:15


Beman Dawes wrote:

[...]

> That was meant read:
>
> buf.actime = std::time(0)
>

funny :)

>
> Now, it may be a poor design to update actime to the current time. It
> might be better to do a stat(), and get st_atime, and then use that.
> Opinions?
>

IMO the really poor design is that of ::utime which forces you to set
both the access time and the write time in the same call;
I'm afraid you have no choice but to determine the actual access time
before (as you suggested) :(

Stefan


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk