[glibmm] gmmproc: _CLASS_INTERFACE(): Generate move operations.
- From: Murray Cumming <murrayc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glibmm] gmmproc: _CLASS_INTERFACE(): Generate move operations.
- Date: Sat, 22 Aug 2015 19:39:37 +0000 (UTC)
commit 82afa6da761cb83cbd970ef7cd1aec26afc216cc
Author: Murray Cumming <murrayc murrayc com>
Date: Fri Aug 21 22:14:40 2015 +0200
gmmproc: _CLASS_INTERFACE(): Generate move operations.
tools/m4/class_interface.m4 | 14 ++++++++++++++
1 files changed, 14 insertions(+), 0 deletions(-)
---
diff --git a/tools/m4/class_interface.m4 b/tools/m4/class_interface.m4
index 7226a32..f9591ab 100644
--- a/tools/m4/class_interface.m4
+++ b/tools/m4/class_interface.m4
@@ -202,6 +202,16 @@ __CPPNAME__::__CPPNAME__`'(const Glib::Interface_Class& interface_class)
{
}
+__CPPNAME__::__CPPNAME__`'(__CPPNAME__&& src)
+: __CPPPARENT__`'(std::move(src))
+{}
+
+__CPPNAME__& __CPPNAME__::operator=(__CPPNAME__&& src)
+{
+ __CPPPARENT__::operator=`'(std::move(src));
+ return *this;
+}
+
__CPPNAME__::~__CPPNAME__`'()
{}
@@ -268,6 +278,10 @@ protected:
#endif /* DOXYGEN_SHOULD_SKIP_THIS */
public:
+
+ __CPPNAME__`'(__CPPNAME__&& src);
+ __CPPNAME__& operator=(__CPPNAME__&& src);
+
_IMPORT(SECTION_DTOR_DOCUMENTATION)
virtual ~__CPPNAME__`'();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]