]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
buffer: fix the traits of list::iterator
authorKefu Chai <kchai@redhat.com>
Mon, 26 Nov 2018 17:47:07 +0000 (01:47 +0800)
committerKefu Chai <kchai@redhat.com>
Tue, 27 Nov 2018 16:26:02 +0000 (00:26 +0800)
commit1c5834be574c6bb2f9d0b44f41e50f0be050984a
treecb69f7fa8d8043cbe44aca104bc65cf51a24089c
parent719758a0d4a52950aac6148b78a65ffd9e234268
buffer: fix the traits of list::iterator

before this change, the constness of value, pointer, etc traits of
list::iterator was wrong.  also, because std::iterator is deprecated
in C++17, we need to define the traits manually. so, do this change.

these traits could be potentially used anywhere in the source tree.
but a noteworthy user is is_const_iterator<> in denc.h.

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