]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
include/denc: redefine is_const_iterator
authorKefu Chai <tchaikov@gmail.com>
Sun, 21 Aug 2022 00:23:00 +0000 (08:23 +0800)
committerKefu Chai <tchaikov@gmail.com>
Sun, 21 Aug 2022 02:09:14 +0000 (10:09 +0800)
commit3fd12ff38ddfea869331bfec439307f2315ff11d
tree434100502e31c6655a95dd7784656e4a0849e952
parent9b2d1df4d5949c6b746fdd53e786de0bf6c15236
include/denc: redefine is_const_iterator

to just check for the return type of `it.get_pos_add(n)`, this
is exactly what we expect from a buffer::ptr::const_iterator.
it is more specific and less confusing.

Signed-off-by: Kefu Chai <tchaikov@gmail.com>
src/include/denc.h