From 80a9e7a52db8d686ba81beb5399c80b300ce4a96 Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Mon, 18 May 2020 14:12:18 +0300 Subject: Fix to compile with Clang --- libbuild2/rule.hxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 (*this)) {} public: // Some of the operations come in compensating pairs, such as update and -- cgit v1.1