summaryrefslogtreecommitdiffhomepage
path: root/example/simple_example/example.cpp
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlal@nekernel.org>2026-01-15 19:58:12 +0100
committerAmlal El Mahrouss <amlal@nekernel.org>2026-01-15 19:58:12 +0100
commit8d68008d2d3bc717d7bacf38aed0a4b42bbe5b24 (patch)
treec66136173458385395435c02ec3860aaad7ffbb3 /example/simple_example/example.cpp
parentd52755f226e92c8606d472eaf0481c9f94311a34 (diff)
example.cpp: use `auto` after calling `make_unique` on new_elem.v1.1.1
Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
Diffstat (limited to 'example/simple_example/example.cpp')
-rw-r--r--example/simple_example/example.cpp4
1 files changed, 2 insertions, 2 deletions
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<tproc::crope> new_elem = std::make_unique<tproc::crope>(", and Jumps again.");
+ auto new_elem = std::make_unique<tproc::crope>(", and Jumps again.");
+
rope.concat(new_elem.get());
std::cout << *++rope << std::endl;