aboutsummaryrefslogtreecommitdiff
path: root/libbuild2/rule.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'libbuild2/rule.hxx')
-rw-r--r--libbuild2/rule.hxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/libbuild2/rule.hxx b/libbuild2/rule.hxx
index 79747d5..975dd59 100644
--- a/libbuild2/rule.hxx
+++ b/libbuild2/rule.hxx
@@ -121,7 +121,9 @@ namespace build2
size_t braces; // Number of braces in multi-brace tokens.
adhoc_rule (const location& l, size_t b)
- : loc (l), braces (b), rule_match ("adhoc", *this) {}
+ : loc (l),
+ braces (b),
+ rule_match ("adhoc", static_cast<const rule&> (*this)) {}
public:
// Some of the operations come in compensating pairs, such as update and