]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
common: fix BoundedKeyCounter const_pointer_iterator 21083/head
authorCasey Bodley <cbodley@redhat.com>
Wed, 15 Nov 2017 21:03:00 +0000 (16:03 -0500)
committerPrashant D <pdhange@redhat.com>
Wed, 28 Mar 2018 04:16:55 +0000 (00:16 -0400)
commita75c507e56702e383a3ee36f6fe9d795ddf90f35
treea62d419e3f66c50f74dc4ca9c006328e1b360c2f
parent19e457355b99415a66565bbecd55d8deed159c99
common: fix BoundedKeyCounter const_pointer_iterator

with libc++, clang fails to compile a call to:

  vector::assign(const_pointer_iterator, const_pointer_iterator)

because const_pointer_iterator does not satisfy the InputIterator
concept. added the necessary typedefs for value_type and reference
to reflect the pointer type

Fixes: http://tracker.ceph.com/issues/22139
Signed-off-by: Casey Bodley <cbodley@redhat.com>
(cherry picked from commit fa034b69982285b800b0d85d1054a3c25a88d625)
src/common/bounded_key_counter.h