From 65fadc6003259719161be650d2ede16c30e0bb3b Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Fri, 15 Apr 2022 10:03:36 +0200 Subject: Get rid of target::dynamic_type() virtual function Instead of overriding this function, derived targets must now set the dynamic_type variable to their static_type in their constructor body. --- libbuild2/bin/rule.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libbuild2/bin/rule.cxx') diff --git a/libbuild2/bin/rule.cxx b/libbuild2/bin/rule.cxx index 85cc9de..38a3d98 100644 --- a/libbuild2/bin/rule.cxx +++ b/libbuild2/bin/rule.cxx @@ -22,7 +22,7 @@ namespace build2 bool obj_rule:: match (action a, target& t) const { - const char* n (t.dynamic_type ().name); // Ignore derived type. + const char* n (t.dynamic_type->name); // Ignore derived type. fail << diag_doing (a, t) << " target group" << info << "explicitly select " << n << "e{}, " << n << "a{}, or " -- cgit v1.1