summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJose <jose@zeroc.com>2019-01-24 16:40:44 +0100
committerJose <jose@zeroc.com>2019-01-24 16:40:44 +0100
commit914a554866769197f8ade4d0037eb8251df919d0 (patch)
tree62d1d2212525f50fb213672f49f05db75c5648d8
parentMinor style fix (diff)
downloadice-914a554866769197f8ade4d0037eb8251df919d0.tar.bz2
ice-914a554866769197f8ade4d0037eb8251df919d0.tar.xz
ice-914a554866769197f8ade4d0037eb8251df919d0.zip
Avoid result copy when setting the promise
-rw-r--r--cpp/include/Ice/OutgoingAsync.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/cpp/include/Ice/OutgoingAsync.h b/cpp/include/Ice/OutgoingAsync.h
index aebb165a11d..b9bf898a3c9 100644
--- a/cpp/include/Ice/OutgoingAsync.h
+++ b/cpp/include/Ice/OutgoingAsync.h
@@ -580,7 +580,7 @@ public:
this->_is.startEncapsulation();
R v = this->_read(&this->_is);
this->_is.endEncapsulation();
- this->_promise.set_value(v);
+ this->_promise.set_value(std::move(v));
}
else
{