|
Boost : |
From: David Abrahams (dave_at_[hidden])
Date: 2003-08-21 08:54:52
"John Torjo" <john.lists_at_[hidden]> writes:
>>
>> path x('foo/bar', portable_check);
>> path y('baz', native_check);
>>
>> path z = x/y; // Which checks are made?
>>
>> path q = z/y; // which checks are made?
>>
>
> I guess it should be pretty easy.
>
> In the first case, use x's checks, and in the second case, use z's checks,
> since '/y' is relative to x (first case) or z (second case).
>
> It seems quite straightforward to me.
To me, those aren't obvious choices. I'd have expected it to use the
strictest combination of x's and y's checks to compute z. It's always
possible to disable y's checks by writing x/path(y) if that's what you
want.
-- 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