|
Boost : |
From: Beman Dawes (bdawes_at_[hidden])
Date: 2002-02-28 13:20:08
At 04:03 PM 2/27/2002, Stewart, Robert wrote:
>From: Beman Dawes [mailto:bdawes_at_[hidden]]
>>
>> At 07:43 PM 2/24/2002, Jan Langer wrote:
>>
>> >>bool remove(name_t name);
>>
>> No return. Should throw if error. Other than exists(), all the free
>> functions should throw on error.
>
>I disagree. This is not such an uncommon failure; using an exception to
>report it will make code for this frequent, if not common condition, more
>awkward.
The name has been to "erase" so there will be less chance of confusion with
std::remove. That also solves the issue you are worried about; just use
std::remove if you don't care about errors.
>> >>bool move(name_t source, name_t dest);
>>
>> Not sure if this should be called rename or move. Specs need
>> to be worked
>> out if the target is a different volume than source.
>
>Using one name for both operations can be confusing, but it is a common
>idiom to call both "move."
That's currently the plan.
Thanks for the comments.
--Beman
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk