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/context.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'build2/context.cxx') diff --git a/build2/context.cxx b/build2/context.cxx index aa75b6c..a4ff001 100644 --- a/build2/context.cxx +++ b/build2/context.cxx @@ -606,7 +606,7 @@ namespace build2 if (t.type == token_type::word) { string& v (t.value); - size_t p (path::traits::rfind_separator (v)); + size_t p (path::traits_type::rfind_separator (v)); if (p != string::npos && p != 0) // If first then visibility. { @@ -631,7 +631,7 @@ namespace build2 // If double separator (visibility marker), then keep the first in // name. // - if (p != 0 && path::traits::is_separator (v[p - 1])) + if (p != 0 && path::traits_type::is_separator (v[p - 1])) --p; dir = dir_path (t.value, 0, p + 1); // Include the separator. @@ -673,7 +673,7 @@ namespace build2 // char c (t.value[0]); - if (path::traits::is_separator (c)) + if (path::traits_type::is_separator (c)) c = '/'; // Normalize. string n (t.value, c == '!' || c == '%' || c == '/' ? 1 : 0); -- cgit v1.1