From 8d68008d2d3bc717d7bacf38aed0a4b42bbe5b24 Mon Sep 17 00:00:00 2001 From: Amlal El Mahrouss Date: Thu, 15 Jan 2026 19:58:12 +0100 Subject: example.cpp: use `auto` after calling `make_unique` on new_elem. Signed-off-by: Amlal El Mahrouss --- example/simple_example/example.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'example/simple_example/example.cpp') diff --git a/example/simple_example/example.cpp b/example/simple_example/example.cpp index 0487e80..acd7182 100644 --- a/example/simple_example/example.cpp +++ b/example/simple_example/example.cpp @@ -18,8 +18,8 @@ using namespace boost; int main() { auto rope = tproc::crope("The Quick Brown Fox Jumps Over The Lazy Dog"); - - std::unique_ptr new_elem = std::make_unique(", and Jumps again."); + auto new_elem = std::make_unique(", and Jumps again."); + rope.concat(new_elem.get()); std::cout << *++rope << std::endl; -- cgit v1.2.3