]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
os/ObjectStore: add noexcept to ensure move ctor is used 8421/head
authorKefu Chai <kchai@redhat.com>
Sat, 2 Apr 2016 19:33:15 +0000 (03:33 +0800)
committerKefu Chai <kchai@redhat.com>
Sat, 2 Apr 2016 19:37:13 +0000 (03:37 +0800)
commitc432691a3b9f0260705b69bdf365a9188017e2f8
tree34451c0489babf5873690d653aef2edf0e32d116
parent9470969da1154edbc3f9c39b42101a38b61921c2
os/ObjectStore: 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/os/ObjectStore.h