[glibmm] gmmproc: _CLASS_BOXEDTYPE_STATIC: Add copy operations.
- From: Murray Cumming <murrayc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glibmm] gmmproc: _CLASS_BOXEDTYPE_STATIC: Add copy operations.
- Date: Sat, 22 Aug 2015 19:40:27 +0000 (UTC)
commit 0279dcfead79fbd3713c71252bea228503ae7258
Author: Murray Cumming <murrayc murrayc com>
Date: Sat Aug 22 13:47:53 2015 +0200
gmmproc: _CLASS_BOXEDTYPE_STATIC: Add copy operations.
These were previously implicitly generated by the compiler,
but are no longer generated because we now have explicit move
operations.
Being explicit seems like a better way to preserve ABI anyway.
tools/m4/class_boxedtype_static.m4 | 15 +++++++++++++++
1 files changed, 15 insertions(+), 0 deletions(-)
---
diff --git a/tools/m4/class_boxedtype_static.m4 b/tools/m4/class_boxedtype_static.m4
index ada3758..9624257 100644
--- a/tools/m4/class_boxedtype_static.m4
+++ b/tools/m4/class_boxedtype_static.m4
@@ -99,6 +99,18 @@ dnl
dnl The implementation:
dnl
+__CPPNAME__::__CPPNAME__`'(const __CPPNAME__& other) noexcept
+:
+ gobject_(other.gobject_)
+{
+}
+
+__CPPNAME__& __CPPNAME__::operator=(const __CPPNAME__`'& other) noexcept
+{
+ gobject_ = other.gobject_;
+ return *this;
+}
+
__CPPNAME__::__CPPNAME__`'(__CPPNAME__&& other) noexcept
:
gobject_(std::move(other.gobject_))
@@ -160,6 +172,9 @@ public:
typedef __CNAME__ BaseObjectType;
#endif /* DOXYGEN_SHOULD_SKIP_THIS */
+ __CPPNAME__`'(const __CPPNAME__& other) noexcept;
+ __CPPNAME__& operator=(const __CPPNAME__& other) noexcept;
+
__CPPNAME__`'(__CPPNAME__&& other) noexcept;
__CPPNAME__& operator=(__CPPNAME__&& other) noexcept;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]