From 2650fe1faaee8202cb7361f2e8cf0c790c3fd946 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Wed, 3 Jun 2020 09:16:21 +0200 Subject: Get rid of remaining typedef's --- libbuild2/spec.hxx | 4 ++-- libbuild2/target.hxx | 2 +- libbuild2/utility.txx | 2 +- libbuild2/variable.hxx | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) (limited to 'libbuild2') diff --git a/libbuild2/spec.hxx b/libbuild2/spec.hxx index 3a760c6..d2ed609 100644 --- a/libbuild2/spec.hxx +++ b/libbuild2/spec.hxx @@ -16,7 +16,7 @@ namespace build2 { struct targetspec { - typedef build2::name name_type; + using name_type = build2::name; explicit targetspec (name_type n): name (move (n)) {} @@ -52,7 +52,7 @@ namespace build2 values params; }; - typedef vector buildspec; + using buildspec = vector; LIBBUILD2_SYMEXPORT ostream& operator<< (ostream&, const targetspec&); diff --git a/libbuild2/target.hxx b/libbuild2/target.hxx index 9a4aed5..eb958c8 100644 --- a/libbuild2/target.hxx +++ b/libbuild2/target.hxx @@ -1499,7 +1499,7 @@ namespace build2 public: using mtime_target::mtime_target; - typedef build2::path path_type; + using path_type = build2::path; // Target path is an "atomic consistent cash". That is, it can be set at // any time (including on a const instance) but any subsequent updates diff --git a/libbuild2/utility.txx b/libbuild2/utility.txx index 5e7accc..bb25288 100644 --- a/libbuild2/utility.txx +++ b/libbuild2/utility.txx @@ -34,7 +34,7 @@ namespace build2 basic_path relative (const basic_path& p) { - typedef basic_path path; + using path = basic_path; const dir_path& b (*relative_base); diff --git a/libbuild2/variable.hxx b/libbuild2/variable.hxx index e5d8e72..9febe5e 100644 --- a/libbuild2/variable.hxx +++ b/libbuild2/variable.hxx @@ -1330,7 +1330,7 @@ namespace butl struct compare_prefix>: compare_prefix { - typedef compare_prefix base; + using base = compare_prefix; explicit compare_prefix (char d): base (d) {} -- cgit v1.1