fs/Traits: use value_type
This commit is contained in:
parent
f0be48ff90
commit
f618065f7c
|
@ -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 = '/';
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue