diff options
author | Jose <jose@zeroc.com> | 2019-01-24 16:40:44 +0100 |
---|---|---|
committer | Jose <jose@zeroc.com> | 2019-01-24 16:40:44 +0100 |
commit | 914a554866769197f8ade4d0037eb8251df919d0 (patch) | |
tree | 62d1d2212525f50fb213672f49f05db75c5648d8 /cpp/include/Ice/OutgoingAsync.h | |
parent | Minor style fix (diff) | |
download | ice-914a554866769197f8ade4d0037eb8251df919d0.tar.bz2 ice-914a554866769197f8ade4d0037eb8251df919d0.tar.xz ice-914a554866769197f8ade4d0037eb8251df919d0.zip |
Avoid result copy when setting the promise
Diffstat (limited to 'cpp/include/Ice/OutgoingAsync.h')
-rw-r--r-- | cpp/include/Ice/OutgoingAsync.h | 2 |
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 { |