aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2020-05-18 14:12:18 +0300
committerBoris Kolpackov <boris@codesynthesis.com>2020-05-27 08:35:29 +0200
commit80a9e7a52db8d686ba81beb5399c80b300ce4a96 (patch)
tree3cf72aa96c64d946fbeadcb8888dccfec38cd5d4
parent333b13f697dfe04d5f2515c03baa1c4f5eccbe48 (diff)
Fix to compile with Clang
-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