|
Boost : |
From: David Abrahams (dave_at_[hidden])
Date: 2004-02-02 09:41:03
Beman Dawes <bdawes_at_[hidden]> writes:
> Coming back to equivalence, I still like John Maddock's suggestion of
> throwing only if both do not exist. If fits my intuitive sense of what
> "equivalence" means for files and directories. However, such thoughts
> in the past sometimes changed when tests cases were being
> constructed. So no firm decision has been made yet.
I don't think I'd want an exception in this case either. I think you
should treat a path that doesn't exist like a non-signalling NaN.
IIRC, two NaNs never compare equal.
-- Dave Abrahams Boost Consulting www.boost-consulting.com
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk