From e5e975934fd25811a79f3fc40ba7f94b7d1cb0b4 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Tue, 5 Dec 2017 12:56:44 +0200 Subject: Minor value typification API change --- build2/variable.cxx | 2 +- build2/variable.hxx | 6 +++--- build2/variable.ixx | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) (limited to 'build2') diff --git a/build2/variable.cxx b/build2/variable.cxx index ec8ea97..6eb2377 100644 --- a/build2/variable.cxx +++ b/build2/variable.cxx @@ -1231,7 +1231,7 @@ namespace build2 void variable_map:: typify (value_data& v, const variable& var) const { - // We assume typification is not modification. + // We assume typification is not modification so no version increment. // build2::typify (v, *var.type, &var); } diff --git a/build2/variable.hxx b/build2/variable.hxx index 9a58584..aa00eb8 100644 --- a/build2/variable.hxx +++ b/build2/variable.hxx @@ -306,11 +306,11 @@ namespace build2 template T cast_true (const lookup&); - // Assign value type to the value. In the second version the variable is - // optional and is only used for diagnostics. + // Assign value type to the value. The variable is optional and is only used + // for diagnostics. // template - void typify (value&, const variable&); + void typify (value&, const variable*); void typify (value&, const value_type&, const variable*); // Remove value type from the value reversing it to names. This is similar diff --git a/build2/variable.ixx b/build2/variable.ixx index 634e3dc..d7c4326 100644 --- a/build2/variable.ixx +++ b/build2/variable.ixx @@ -230,12 +230,12 @@ namespace build2 template inline void - typify (value& v, const variable& var) + typify (value& v, const variable* var) { value_type& t (value_traits::value_type); if (v.type != &t) - typify (v, t, &var); + typify (v, t, var); } inline vector_view -- cgit v1.1