Subject: Re: [boost] boost::filesystem request
From: Beman Dawes (bdawes_at_[hidden])
Date: 2008-10-29 17:53:37
On Mon, Oct 27, 2008 at 1:18 PM, Andrey Semashev
> Edward Diener wrote:
> > Jorge Lodos Vigil wrote:
> >> Hi
> >> The Traits classes for basic_path provided in the filesystem library
> >> (path_traits and wpath_traits) are good enough to be used as default
> >> values for basic_path in most cases.
> >> However, since they are independent structs, they can not be used to
> >> instantiate a basic_path with a single String template parameter. I
> >> would like to write:
> >> typedef basic_string<char> string_t;
> >> typedef fs::basic_path<string_t, fs::basic_path_traits<string_t> >
> >> path_t;
> > I would like to second this request. I also noticed that one can not
> > easily instantiate a basic_path based completely on a string type,
> > because of the traits class. If it is at all possible, the traits class
> > should be a template class based on the string type, with supplied
> > specializations for std::string and std::wstring.
> I second that, too. Maybe, a Trac ticket would be a appropriate.
I'm pretty close to posting a Filesystem Version 3 prototype for feedback.
Perhaps as soon as this weekend.
It uses a single class path, with templated member functions. Much simpler
and more straightforward to use. So the question will become, are these
member templates flexible enough to achieve what you are trying to
accomplish? It wouldn't be surprising if some further work were needed, and
I'll be very interested in getting your comments on the prototype.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk