fs/Traits: use value_type

This commit is contained in:
Max Kellermann 2014-10-10 19:08:52 +02:00
parent f0be48ff90
commit f618065f7c
1 changed files with 4 additions and 4 deletions

View File

@ -38,8 +38,8 @@
struct PathTraitsFS { struct PathTraitsFS {
typedef std::string string; typedef std::string string;
typedef char value_type; typedef char value_type;
typedef char *pointer; typedef value_type *pointer;
typedef const char *const_pointer; typedef const value_type *const_pointer;
#ifdef WIN32 #ifdef WIN32
static constexpr value_type SEPARATOR = '\\'; static constexpr value_type SEPARATOR = '\\';
@ -136,8 +136,8 @@ struct PathTraitsFS {
struct PathTraitsUTF8 { struct PathTraitsUTF8 {
typedef std::string string; typedef std::string string;
typedef char value_type; typedef char value_type;
typedef char *pointer; typedef value_type *pointer;
typedef const char *const_pointer; typedef const value_type *const_pointer;
static constexpr value_type SEPARATOR = '/'; static constexpr value_type SEPARATOR = '/';