Boost logo

Boost :

From: Stewart, Robert (stewart_at_[hidden])
Date: 2002-02-27 16:03:19


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.

> >>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."

Rob
Susquehanna International Group, LLP
http://www.sig.com


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