From d37709e5c27b1fe7b98de57247449c6272c79580 Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Mon, 3 Jun 2019 12:59:26 +0300 Subject: Adapt to renaming traits alias to traits_type for basic_path, basic_url, and string_table class templates --- build2/target.cxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'build2/target.cxx') diff --git a/build2/target.cxx b/build2/target.cxx index 667933a..fee77b4 100644 --- a/build2/target.cxx +++ b/build2/target.cxx @@ -233,7 +233,7 @@ namespace build2 size_t p; if (v.back () != '.') { - if ((p = path::traits::find_extension (v)) != string::npos) + if ((p = path::traits_type::find_extension (v)) != string::npos) r = string (v.c_str () + p + 1); } else @@ -285,7 +285,7 @@ namespace build2 } else if (de) { - if (path::traits::find_extension (v) != string::npos) + if (path::traits_type::find_extension (v) != string::npos) v += "..."; } } @@ -966,7 +966,7 @@ namespace build2 { // Add/strip trailing directory separator unless already there. // - bool d (path::traits::is_separator (v.back ())); + bool d (path::traits_type::is_separator (v.back ())); if (r) { @@ -975,7 +975,7 @@ namespace build2 } else if (!d) { - v += path::traits::directory_separator; + v += path::traits_type::directory_separator; return true; } -- cgit v1.1