From 4cda4b89c16932f02e04c5019a71b659ccf821e6 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Thu, 18 Jun 2015 12:25:02 +0200 Subject: Move prefix-map from build2 to libbutl --- build/path-map | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) (limited to 'build/path-map') diff --git a/build/path-map b/build/path-map index b95f2a6..8355ccc 100644 --- a/build/path-map +++ b/build/path-map @@ -5,11 +5,15 @@ #ifndef BUILD_PATH_MAP #define BUILD_PATH_MAP +#include + #include -#include -namespace build +namespace butl { + + // @@ Remove butl:: when move to libbutl. + // prefix_map for paths // // The paths should be normalized. @@ -25,9 +29,9 @@ namespace build // it. // template - struct compare_prefix>: compare_prefix> + struct compare_prefix>: compare_prefix> { - typedef basic_path key_type; + typedef build::basic_path key_type; typedef C delimiter_type; typedef std::basic_string string_type; @@ -69,13 +73,16 @@ namespace build #endif } }; +} +namespace build +{ template - using path_map = prefix_map; + using path_map = butl::prefix_map; template using dir_path_map = - prefix_map; + butl::prefix_map; } #endif // BUILD_PATH_MAP -- cgit v1.1