|
Boost : |
Subject: Re: [boost] boost::filesystem::path frustration
From: Dave Abrahams (dave_at_[hidden])
Date: 2013-01-27 10:43:41
on Sat Jan 26 2013, Neil Groves <neil-AT-grovescomputing.com> wrote:
>> > I suspect that you probably want to determine the common effective
>> > prefix of the paths after canonicalisation.
>>
>> No, the paths are known to be already canonicalized (with a 'z' ;->)
>>
>>
> I'll try and remember to use 'z'!
I was just teasing! That's an American vs. English English thing ;^).
>> B. for such an operation requiring the input paths to be canonical
>> beforehand might in fact be the most appropriate interface.
>>
> I can see an argument for that. I wasn't attempting to suggest that there
> was one obvious correct idiom. I was really aiming to link to the previous
> discussion and the supplied implementation for a solution. I think on most
> observations I perceive similar improvements to be possible. My only real
> disagreement is with labelling Boost.Filesystem as frustrating.
I didn't. I said I have frustrations with one particular component thereof.
> For the most part it helps me avoid writing tedious code. I like the
> idea of improving the iteration scheme and making it more like a
> container.
Ah, but a container of *what*? That's the question.
-- Dave Abrahams BoostPro Computing Software Development Training http://www.boostpro.com Clang/LLVM/EDG Compilers C++ Boost
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk