diff options
author | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2017-03-09 18:31:58 +0900 |
---|---|---|
committer | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2017-03-09 18:31:58 +0900 |
commit | c8d31ab28db19a7e1f1ca9cf1a35de17158c43fb (patch) | |
tree | 6bf5ecb0caaf633b33d56d0036b2165d90116a06 | |
parent | 39399c95026d7c17701e492822dddcf321dd7b8b (diff) | |
download | libquotient-c8d31ab28db19a7e1f1ca9cf1a35de17158c43fb.tar.gz libquotient-c8d31ab28db19a7e1f1ca9cf1a35de17158c43fb.zip |
Fixed building with VS2013
-rw-r--r-- | util.h | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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()); |