|
Boost Users : |
From: Sachin Garg (schngrg_at_[hidden])
Date: 2008-08-21 02:06:27
On Thu, Aug 21, 2008 at 2:27 AM, Sachin Garg <schngrg_at_[hidden]> wrote:
> I have following 3 lines of code, is this usage correct?
>
> fs::wpath input_path=somepath;
> fs::wpath output_path=anotherpath;
> output_path.append(input_path.begin()+7,input_path.end());
My bad, I finally figured out that above usage is not the intended use
of append. Can this be registered as a feature request, I think it
will be very convenient to have this.
Also, I am now trying this to achieve the same effect:
for(fs::wpath::iterator
i=input_path.begin()+7;i!=input_path.end();i++) output_path/=(*i);
While i++ works, i+7 doesn't works as basic_path::iterator does not
implements advance(). Is there some specific reason for not having it?
Sachin Garg
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net