From 149a5998b5ec6f825998a27a305d972022271888 Mon Sep 17 00:00:00 2001 From: Amlal El Mahrouss Date: Sun, 4 Jan 2026 07:56:21 +0100 Subject: core: tracked_ptr: Update public API. Signed-off-by: Amlal El Mahrouss --- example/option_example/example.cpp | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) (limited to 'example/option_example/example.cpp') diff --git a/example/option_example/example.cpp b/example/option_example/example.cpp index b2c3f95..c2fc2ca 100644 --- a/example/option_example/example.cpp +++ b/example/option_example/example.cpp @@ -7,22 +7,23 @@ #include #include -struct invalid_callable { - explicit invalid_callable() = default; - void operator()(const char* reason) - { - ocl::detail::throw_runtime_error(); - } +struct invalid_callable +{ + explicit invalid_callable() = default; + void operator()(const char* reason) + { + ocl::detail::throw_runtime_error(); + } }; /// \brief Option Monad example int main(int argc, char** argv) { - ocl::option opt{ocl::eval_eq(nullptr, nullptr)}; - opt.expect("option::incorrect"); + ocl::option opt{ocl::eval_eq(nullptr, nullptr)}; + opt.expect("option::incorrect"); - ocl::option opt2{ocl::eval_eq(argv, nullptr)}; - opt2.expect("option::incorrect"); + ocl::option opt2{ocl::eval_eq(argv, nullptr)}; + opt2.expect("option::incorrect"); return 0; } -- cgit v1.2.3