From 2d2a850a61dbe5695ba92dfc4dcb107c10d3bce6 Mon Sep 17 00:00:00 2001 From: Amlal El Mahrouss Date: Thu, 8 Jan 2026 09:38:31 +0100 Subject: feat: `operator<<` for const crope/wrope. API improvements. Signed-off-by: Amlal El Mahrouss --- example/simple_example/example.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'example/simple_example/example.cpp') diff --git a/example/simple_example/example.cpp b/example/simple_example/example.cpp index da543a9..3feb686 100644 --- a/example/simple_example/example.cpp +++ b/example/simple_example/example.cpp @@ -7,6 +7,7 @@ #include #include +#include #ifndef STANDALONE using namespace ocl; @@ -18,9 +19,9 @@ int main() { auto rope = tproc::crope("The Quick Brown Fox Jumps Over The Lazy Dog"); - std::unique_ptr new_elem(new tproc::crope(", and Jumps again.")); + std::unique_ptr new_elem = std::make_unique(", and Jumps again."); std::unique_ptr res(rope.concat(new_elem.get())); - std::cout << ++rope; - std::cout << rope; + std::cout << *++rope << std::endl; + std::cout << rope << std::endl; } -- cgit v1.2.3