[libsigc++2] typed_slot_rep: =delete unimplemented copy and move operations.
- From: Murray Cumming <murrayc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libsigc++2] typed_slot_rep: =delete unimplemented copy and move operations.
- Date: Fri, 6 Nov 2015 08:49:34 +0000 (UTC)
commit 043cfa5ca2cac2bc45facd0cea0a4c500a47e498
Author: Murray Cumming <murrayc murrayc com>
Date: Fri Nov 6 09:29:35 2015 +0100
typed_slot_rep: =delete unimplemented copy and move operations.
Prevent, copy assignment operator, move constructor and move
assignment operators from being generated automatically.
These are never used, but this will make sure of that.
See https://bugzilla.gnome.org/show_bug.cgi?id=756484#c5
sigc++/functors/macros/slot.h.m4 | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/sigc++/functors/macros/slot.h.m4 b/sigc++/functors/macros/slot.h.m4
index ff199d5..a6c7288 100644
--- a/sigc++/functors/macros/slot.h.m4
+++ b/sigc++/functors/macros/slot.h.m4
@@ -276,6 +276,11 @@ struct typed_slot_rep : public slot_rep
: slot_rep(cl.call_, &destroy, &dup), functor_(cl.functor_)
{ sigc::visit_each_type<trackable*>(slot_do_bind(this), functor_); }
+ typed_slot_rep& operator=(const typed_slot_rep& src) = delete;
+
+ typed_slot_rep(typed_slot_rep&& src) = delete;
+ typed_slot_rep& operator=(typed_slot_rep&& src) = delete;
+
inline ~typed_slot_rep()
{
call_ = nullptr;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]