From 8bc5bd0f9fe45763460b2414b789270b504faf13 Mon Sep 17 00:00:00 2001 From: Michael Andres Date: Wed, 10 Jul 2013 11:32:20 +0200 Subject: [PATCH] Swig can't handle move constructor --- zypp/Pathname.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/zypp/Pathname.h b/zypp/Pathname.h index 89a9a08..a0375f7 100644 --- a/zypp/Pathname.h +++ b/zypp/Pathname.h @@ -66,12 +66,12 @@ namespace zypp using std::swap; swap( lhs._name, rhs._name ); } - +#ifndef SWIG // Swig treats it as syntax error /** Move Ctor */ Pathname( Pathname && tmp ) : _name( std::move( tmp._name ) ) {} - +#endif /** Assign */ Pathname & operator=( Pathname rhs ) { swap( *this, rhs ); return *this; } -- 2.7.4