aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2020-04-27 09:41:22 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2020-04-27 09:41:22 +0200
commitb138bc2bdc8d8b10f9aa438c9d869f72bb86f694 (patch)
treeac9822e7401695e5e176cb279ac635b65950a066
parent197ac5950ea129b7b0dba4fd460b3b630d490fe1 (diff)
Make rule non-copyable
-rw-r--r--libbuild2/rule.hxx5
1 files changed, 5 insertions, 0 deletions
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