From a632dca2ff053fee51e6ebcea88000d38ebbca34 Mon Sep 17 00:00:00 2001 From: Amlal El Mahrouss Date: Sat, 20 Dec 2025 22:37:50 +0100 Subject: chore: API and design improvements. Signed-off-by: Amlal El Mahrouss --- example/smart_ptr_example/example.cc | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'example') diff --git a/example/smart_ptr_example/example.cc b/example/smart_ptr_example/example.cc index ef1a865..a8293f2 100644 --- a/example/smart_ptr_example/example.cc +++ b/example/smart_ptr_example/example.cc @@ -2,9 +2,13 @@ #include #include -int main(int argc, char** argv) +auto main(int argc, char** argv) -> int { ocl::shared_ptr smart = ocl::delete_ptr(&std::cout); + *smart << "hello, world\n"; - return 0; + ocl::tracked_ptr tracked = ocl::make_tracked(10); + *smart << *tracked << "\n"; + + return EXIT_SUCCESS; } -- cgit v1.2.3