summaryrefslogtreecommitdiff
path: root/tools/m4/class_gobject.m4
diff options
context:
space:
mode:
Diffstat (limited to 'tools/m4/class_gobject.m4')
-rw-r--r--tools/m4/class_gobject.m414
1 files changed, 14 insertions, 0 deletions
diff --git a/tools/m4/class_gobject.m4 b/tools/m4/class_gobject.m4
index edd0c5b5..b769c294 100644
--- a/tools/m4/class_gobject.m4
+++ b/tools/m4/class_gobject.m4
@@ -211,6 +211,16 @@ __CPPNAME__::__CPPNAME__`'(__CNAME__* castitem)
')dnl
+__CPPNAME__::__CPPNAME__`'(__CPPNAME__&& src)
+: __CPPPARENT__`'(std::move(src))
+{}
+
+__CPPNAME__& __CPPNAME__::operator=(__CPPNAME__&& src)
+{
+ __CPPPARENT__::operator=`'(std::move(src));
+ return *this;
+}
+
ifdef(`__BOOL_CUSTOM_DTOR__',`dnl
',`dnl
__CPPNAME__::~__CPPNAME__`'()
@@ -259,6 +269,10 @@ protected:
#endif /* DOXYGEN_SHOULD_SKIP_THIS */
public:
+
+ __CPPNAME__`'(__CPPNAME__&& src);
+ __CPPNAME__& operator=(__CPPNAME__&& src);
+
_IMPORT(SECTION_DTOR_DOCUMENTATION)
virtual ~__CPPNAME__`'();