From 585c823720692bdcca37a2d4e5444c2c333b533a Mon Sep 17 00:00:00 2001 From: Radoslaw Zarzynski Date: Tue, 4 Feb 2020 22:31:07 +0100 Subject: [PATCH] examples/librados: fix bufferlist::copy() in hello_world.cc. Signed-off-by: Radoslaw Zarzynski --- examples/librados/hello_world.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/librados/hello_world.cc b/examples/librados/hello_world.cc index 33825db6822..759e26966e9 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; } -- 2.39.5