projects
/
platform
/
upstream
/
libzypp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
137c466
)
Swig can't handle move constructor
author
Michael Andres
<ma@suse.de>
Wed, 10 Jul 2013 09:32:20 +0000
(11:32 +0200)
committer
Michael Andres
<ma@suse.de>
Wed, 10 Jul 2013 09:32:20 +0000
(11:32 +0200)
zypp/Pathname.h
patch
|
blob
|
history
diff --git
a/zypp/Pathname.h
b/zypp/Pathname.h
index
89a9a08
..
a0375f7
100644
(file)
--- 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; }