From 2278fe42e55bbc713ccd2a45736a9eb9369afd36 Mon Sep 17 00:00:00 2001 From: Denis Krjuchkov Date: Tue, 3 Dec 2013 13:37:35 +0600 Subject: fs/Traits.hxx: move definition of AllocatedPath::string to PathTraits --- src/fs/AllocatedPath.hxx | 3 +-- src/fs/Traits.hxx | 1 + 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src/fs') diff --git a/src/fs/AllocatedPath.hxx b/src/fs/AllocatedPath.hxx index 502f30d17..3d557f92e 100644 --- a/src/fs/AllocatedPath.hxx +++ b/src/fs/AllocatedPath.hxx @@ -37,8 +37,7 @@ class Error; * stored. */ class AllocatedPath { - typedef std::string string; - + typedef PathTraits::string string; typedef PathTraits::value_type value_type; typedef PathTraits::pointer pointer; typedef PathTraits::const_pointer const_pointer; diff --git a/src/fs/Traits.hxx b/src/fs/Traits.hxx index df412b12b..c72f9814a 100644 --- a/src/fs/Traits.hxx +++ b/src/fs/Traits.hxx @@ -36,6 +36,7 @@ * This class describes the nature of a filesystem path. */ struct PathTraits { + typedef std::string string; typedef char value_type; typedef char *pointer; typedef const char *const_pointer; -- cgit v1.2.3