aboutsummaryrefslogtreecommitdiff
path: root/libbuild2/target-type.hxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2024-02-13 11:40:12 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2024-02-13 11:40:12 +0200
commit8a23835baa00f0079dbcd259c04ffeb87a764568 (patch)
treee74ccb9c5f68c9bc24ccbb21d63372de833b0ef6 /libbuild2/target-type.hxx
parentfc1fb583de222caecdb956c623765b6a1a047937 (diff)
Make target_type non-copyable
Diffstat (limited to 'libbuild2/target-type.hxx')
-rw-r--r--libbuild2/target-type.hxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/libbuild2/target-type.hxx b/libbuild2/target-type.hxx
index fcf867a..93c5744 100644
--- a/libbuild2/target-type.hxx
+++ b/libbuild2/target-type.hxx
@@ -141,6 +141,9 @@ namespace build2
bool
is_a (const char*) const; // Defined in target.cxx
+
+ target_type& operator= (target_type&&) = delete;
+ target_type& operator= (const target_type&) = delete;
};
inline bool