aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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>