From: Radoslaw Zarzynski Date: Tue, 4 Feb 2020 21:31:07 +0000 (+0100) Subject: examples/librados: fix bufferlist::copy() in hello_world.cc. X-Git-Tag: v15.1.1~518^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F33075%2Fhead;p=ceph.git examples/librados: fix bufferlist::copy() in hello_world.cc. Signed-off-by: Radoslaw Zarzynski --- diff --git a/examples/librados/hello_world.cc b/examples/librados/hello_world.cc index 33825db68229..759e26966e9e 100644 --- a/examples/librados/hello_world.cc +++ b/examples/librados/hello_world.cc @@ -169,7 +169,7 @@ int main(int argc, const char **argv) std::cout << "we read our object " << object_name << ", and got back " << ret << " bytes with contents\n"; std::string read_string; - read_buf.copy(0, ret, read_string); + read_buf.begin().copy(ret, read_string); std::cout << read_string << std::endl; }