Subject: Re: [Boost-bugs] [Boost C++ Libraries] #621: filesystem::path as a template
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2007-07-06 01:46:43
#621: filesystem::path as a template
-------------------------------+--------------------------------------------
Reporter: streetraider | Owner: nobody
Type: Feature Requests | Status: assigned
Milestone: | Component: filesystem
Version: None | Severity: Showstopper
Resolution: None | Keywords:
-------------------------------+--------------------------------------------
Changes (by dave):
* cc: bdawes_at_[hidden] (added)
* component: None => filesystem
* severity: => Showstopper
Old description:
> {{{
> I suggest boost::filesystem::path to be a template:
>
> template <typename CharType = char>
> class path;
>
> Current path will be used as path<char>.
>
> Of course it's unable to use path<wchar_t> for file
> operations like open(), rename() and so on with current
> C++ library. These function may take path<char> as
> parameters.
>
> But it's very useful to have path<wchar_t> dealing with
> filenames! Any will be able to use it and pass them for
> WinAPI functions by example, or use in any database
> that support wide chars.
>
> At second, I think path::extention() member function
> will be useful to exctact extention of the file, such
> as ".html" (or just "html") for "foo/bar.html".
> }}}
New description:
{{{
I suggest boost::filesystem::path to be a template:
template <typename CharType = char>
class path;
Current path will be used as path<char>.
Of course it's unable to use path<wchar_t> for file
operations like open(), rename() and so on with current
C++ library. These function may take path<char> as
parameters.
But it's very useful to have path<wchar_t> dealing with
filenames! Any will be able to use it and pass them for
WinAPI functions by example, or use in any database
that support wide chars.
At second, I think path::extention() member function
will be useful to exctact extention of the file, such
as ".html" (or just "html") for "foo/bar.html".
}}}
Comment:
Can't reassign to Beman until he logs into Trac
--
Ticket URL: <http://svn.boost.org/trac/boost/ticket/621#comment:1>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.
This archive was generated by hypermail 2.1.7 : 2017-02-16 18:49:56 UTC