aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2017-12-05 12:56:44 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2017-12-05 12:56:44 +0200
commite5e975934fd25811a79f3fc40ba7f94b7d1cb0b4 (patch)
treecc8517a2456a088fe8540111024113db971073d1
parent128da0be0a53d12e35aaeaf92dac2df4550ad8cd (diff)
Minor value typification API change
-rw-r--r--build2/variable.cxx2
-rw-r--r--build2/variable.hxx6
-rw-r--r--build2/variable.ixx4
3 files changed, 6 insertions, 6 deletions
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 <typename T> 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 <typename T>
- 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 <typename T>
inline void
- typify (value& v, const variable& var)
+ typify (value& v, const variable* var)
{
value_type& t (value_traits<T>::value_type);
if (v.type != &t)
- typify (v, t, &var);
+ typify (v, t, var);
}
inline vector_view<const name>