[glibmm] C++11: ConstructParams: =delete the operator=, instead of making it private.



commit aadcdd7038cc99b536628a3a0b8bea58c273c382
Author: Murray Cumming <murrayc murrayc com>
Date:   Thu Apr 6 11:06:35 2017 +0200

    C++11: ConstructParams: =delete the operator=, instead of making it private.

 glib/glibmm/object.h |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)
---
diff --git a/glib/glibmm/object.h b/glib/glibmm/object.h
index f04cb6a..e3df1b4 100644
--- a/glib/glibmm/object.h
+++ b/glib/glibmm/object.h
@@ -86,9 +86,7 @@ public:
   // away the copy, though.  See bug #132300.
   ConstructParams(const ConstructParams& other);
 
-private:
-  // no copy assignment
-  ConstructParams& operator=(const ConstructParams&);
+  ConstructParams& operator=(const ConstructParams&) = delete;
 };
 
 #endif /* DOXYGEN_SHOULD_SKIP_THIS */


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]