aboutsummaryrefslogtreecommitdiff
path: root/util.h
diff options
context:
space:
mode:
Diffstat (limited to 'util.h')
-rw-r--r--util.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/util.h b/util.h
index bc16c413..c1f8cebb 100644
--- a/util.h
+++ b/util.h
@@ -81,11 +81,12 @@ namespace QMatrixClient
// in case of Owning< QVector<> > VS2013 (unnecessarily) instantiates
// QVector<>::toList() which instantiates QList< Owning<> > which
// requires the contained object to have a copy constructor.
- Owning(Owning& other) : ContainerT(std::move(other)) { }
+ Owning(Owning& other) : ContainerT(other.release()) { }
+ Owning(Owning&& other) : ContainerT(other.release()) { }
#else
Owning(Owning&) = delete;
-#endif
Owning(Owning&& other) = default;
+#endif
Owning& operator=(Owning&& other)
{
assign(other.release());