diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2016-04-04 13:06:50 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2016-04-04 13:06:50 +0200 |
commit | 5c369faa461ec4416d2d4b231a5b36963a7315ce (patch) | |
tree | fc1b550870a29f0a03e258a76f16496ac69ec35c /build2/variable.ixx | |
parent | 0e486cd3642da8a442629ffce9a3daf16745c35e (diff) |
Implement value typing, null support via value attributes
For example:
v = [null]
v = [string] abc
v += ABC # abcABC
Diffstat (limited to 'build2/variable.ixx')
-rw-r--r-- | build2/variable.ixx | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/build2/variable.ixx b/build2/variable.ixx index ee0f647..821d224 100644 --- a/build2/variable.ixx +++ b/build2/variable.ixx @@ -30,9 +30,7 @@ namespace build2 // if (type == nullptr) { - if (!null ()) - *this = nullptr; - + *this = nullptr; type = &value_traits<T>::value_type; } |