]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
rados: Fix ObjectIterator instantiation to specify correct value_type
authorDavid Zafman <dzafman@redhat.com>
Fri, 26 Sep 2014 22:34:29 +0000 (15:34 -0700)
committerDavid Zafman <dzafman@redhat.com>
Mon, 20 Oct 2014 17:47:50 +0000 (10:47 -0700)
Signed-off-by: David Zafman <dzafman@redhat.com>
src/include/rados/librados.hpp

index bf00c3aa65cf2eec2b1c6ca8b90d880c731202dc..c3882bf0c0979625c4f6ed6314eea300ea7ae112 100644 (file)
@@ -63,7 +63,7 @@ namespace librados
   typedef void *completion_t;
   typedef void (*callback_t)(completion_t cb, void *arg);
 
-  class ObjectIterator : public std::iterator <std::forward_iterator_tag, std::string> {
+  class ObjectIterator : public std::iterator <std::forward_iterator_tag, std::pair<std::string, std::string> > {
   public:
     static const ObjectIterator __EndObjectIterator;
     ObjectIterator() {}