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/cc/compile-rule.cxx | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) (limited to 'build2/cc/compile-rule.cxx') diff --git a/build2/cc/compile-rule.cxx b/build2/cc/compile-rule.cxx index 94e50cd..170e358 100644 --- a/build2/cc/compile-rule.cxx +++ b/build2/cc/compile-rule.cxx @@ -1549,7 +1549,7 @@ namespace build2 if (p > 1 && p + 1 < l.size () && // 2 chars before, 1 after. l[p - 2] == ' ' && alpha (l[p - 1]) && - path::traits::is_separator (l[p + 1])) + path::traits_type::is_separator (l[p + 1])) p = l.rfind (':', p - 2); } @@ -2006,13 +2006,14 @@ namespace build2 // if (const strings* ih = import_hdr) { - auto i (lower_bound (ih->begin (), - ih->end (), - hp, - [] (const string& x, const string& y) - { - return path::traits::compare (x, y) < 0; - })); + auto i ( + lower_bound (ih->begin (), + ih->end (), + hp, + [] (const string& x, const string& y) + { + return path::traits_type::compare (x, y) < 0; + })); if (i != ih->end () && *i == hp) { @@ -2745,8 +2746,8 @@ namespace build2 // -I$src/out_*). We just need to add a trailing directory // separator if it's not already there. // - if (!dir_path::traits::is_separator (ds.back ())) - ds += dir_path::traits::directory_separator; + if (!dir_path::traits_type::is_separator (ds.back ())) + ds += dir_path::traits_type::directory_separator; dir_path d (move (ds), dir_path::exact); // Move the buffer in. @@ -4383,7 +4384,7 @@ namespace build2 // FOObar // bool fs (fc == '_' || fc == '-' || fc == '.' || - path::traits::is_separator (fc)); + path::traits_type::is_separator (fc)); bool ms (mc == '_' || mc == '.'); if (fs && ms) -- cgit v1.1