diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2020-04-27 09:41:22 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2020-04-27 09:41:22 +0200 |
commit | b138bc2bdc8d8b10f9aa438c9d869f72bb86f694 (patch) | |
tree | ac9822e7401695e5e176cb279ac635b65950a066 /libbuild2/rule.hxx | |
parent | 197ac5950ea129b7b0dba4fd460b3b630d490fe1 (diff) |
Make rule non-copyable
Diffstat (limited to 'libbuild2/rule.hxx')
-rw-r--r-- | libbuild2/rule.hxx | 5 |
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 |