]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
common/buffer: add noexcept to ensure move ctor is used 9502/head
authorKefu Chai <kchai@redhat.com>
Sun, 5 Jun 2016 16:32:23 +0000 (00:32 +0800)
committerKefu Chai <kchai@redhat.com>
Mon, 6 Jun 2016 02:10:33 +0000 (10:10 +0800)
commitecfa791809624832c246aca2b74f990a773d5974
tree478966ac9031924ad011c26bfca669116bf8fee1
parent3c83ab2caa3a5f91a9b840d50418798aabe5a64a
common/buffer: add noexcept to ensure move ctor is used

otherwise vector::push_back() will use the copy ctor if it resizes,
to enforce its strong exception guarantee.

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/common/buffer.cc
src/include/buffer.h