From 0e486cd3642da8a442629ffce9a3daf16745c35e Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Sat, 2 Apr 2016 16:18:43 +0200 Subject: Implement variable typing (via attributes) Now we can do: [string] str = foo --- build2/variable | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'build2/variable') 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 override; variable_visibility visibility; }; -- cgit v1.1