From b138bc2bdc8d8b10f9aa438c9d869f72bb86f694 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Mon, 27 Apr 2020 09:41:22 +0200 Subject: Make rule non-copyable --- libbuild2/rule.hxx | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/libbuild2/rule.hxx b/libbuild2/rule.hxx index d11f46c..e5e53d1 100644 --- a/libbuild2/rule.hxx +++ b/libbuild2/rule.hxx @@ -29,6 +29,11 @@ namespace build2 virtual recipe apply (action, target&) const = 0; + + rule () = default; + + rule (const rule&) = delete; + rule& operator= (const rule&) = delete; }; // Fallback rule that only matches if the file exists. It will also match -- cgit v1.1