From 934f2a9a90c5cad3cdc8a66b50c17827a3ddbcee Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Sat, 20 Jan 2018 13:46:11 +0200 Subject: Get rid of action rule override semantics Instead we now have two more or less separate match states for outer and inner parts of an action. --- build2/test/module.hxx | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'build2/test/module.hxx') diff --git a/build2/test/module.hxx b/build2/test/module.hxx index 3c9539f..529f826 100644 --- a/build2/test/module.hxx +++ b/build2/test/module.hxx @@ -17,8 +17,19 @@ namespace build2 { namespace test { - struct module: module_base, virtual common, rule, alias_rule + struct module: module_base, virtual common, default_rule, group_rule { + const test::group_rule& + group_rule () const + { + return *this; + } + + explicit + module (common_data&& d) + : common (move (d)), + test::default_rule (move (d)), + test::group_rule (move (d)) {} }; } } -- cgit v1.1