Swig can't handle move constructor
authorMichael Andres <ma@suse.de>
Wed, 10 Jul 2013 09:32:20 +0000 (11:32 +0200)
committerMichael Andres <ma@suse.de>
Wed, 10 Jul 2013 09:32:20 +0000 (11:32 +0200)
zypp/Pathname.h

index 89a9a08..a0375f7 100644 (file)
@@ -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; }