diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2016-04-02 16:18:43 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2016-04-02 16:18:43 +0200 |
commit | 0e486cd3642da8a442629ffce9a3daf16745c35e (patch) | |
tree | 37dd2b40366598a68685168759543bc8abb4de80 /build2/variable | |
parent | 4bf42322fdd5dd7e01a3f61272bccc4a66a5585f (diff) |
Implement variable typing (via attributes)
Now we can do:
[string] str = foo
Diffstat (limited to 'build2/variable')
-rw-r--r-- | build2/variable | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/build2/variable b/build2/variable index d22d6da..48acfea 100644 --- a/build2/variable +++ b/build2/variable @@ -86,7 +86,7 @@ namespace build2 struct variable { string name; - const value_type* type; // If NULL, then not (yet) typed. + mutable const value_type* type; // If NULL, then not (yet) typed. mutable unique_ptr<variable> override; variable_visibility visibility; }; |