aboutsummaryrefslogtreecommitdiff
path: root/build2/action.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'build2/action.hxx')
-rw-r--r--build2/action.hxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/build2/action.hxx b/build2/action.hxx
index 8c9b7e5..321d2c1 100644
--- a/build2/action.hxx
+++ b/build2/action.hxx
@@ -114,10 +114,10 @@ namespace build2
template <typename T>
struct action_state
{
- T states[2]; // [0] -- inner, [1] -- outer.
+ T data[2]; // [0] -- inner, [1] -- outer.
- T& operator[] (action a) {return states[a.inner () ? 0 : 1];}
- const T& operator[] (action a) const {return states[a.inner () ? 0 : 1];}
+ T& operator[] (action a) {return data[a.inner () ? 0 : 1];}
+ const T& operator[] (action a) const {return data[a.inner () ? 0 : 1];}
};
// Id constants for build-in and pre-defined meta/operations.