Boost logo

Boost Users :

Subject: Re: [Boost-users] [filesystem] how to set a file size?
From: OvermindDL1 (overminddl1_at_[hidden])
Date: 2009-10-16 22:13:31


On Fri, Oct 16, 2009 at 6:40 PM, Scott McMurray <me22.ca+boost_at_[hidden]> wrote:
> 2009/10/16 Beman Dawes <bdawes_at_[hidden]>:
>>
>> I found the POSIX "truncate" name misleading, since on both POSIX and
>> Windows the file can be extended as well as truncated.
>>
>
> Agreed, but why size for a mutating function?  I'd have expected
> resize_file or similar.

I agree. file_size seems like a query to me, something like
resize_file seems more appropriate.


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net