diff options
| author | Amlal El Mahrouss <amlal@nekernel.org> | 2025-11-24 23:34:39 -0500 |
|---|---|---|
| committer | Amlal El Mahrouss <amlal@nekernel.org> | 2025-11-25 00:04:08 -0500 |
| commit | 52399b9b2fe46e29c5ee265baf8cb7f1717a4c53 (patch) | |
| tree | 12c034291fd9d721b1eb9b8c16bcc65285936fe8 /examples | |
| parent | b189449b28625cec7b6ce399f999072e50efae45 (diff) | |
feat: update comment to reflect purpose of tracked_ptr correctly.
Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/tracked_ptr/tracked_ptr.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/examples/tracked_ptr/tracked_ptr.cc b/examples/tracked_ptr/tracked_ptr.cc index 0f7c43d..3f1a4ec 100644 --- a/examples/tracked_ptr/tracked_ptr.cc +++ b/examples/tracked_ptr/tracked_ptr.cc @@ -46,7 +46,8 @@ int main(int argc, char** argv) std::cout << "total=" << ptr.manager().allocator().deallocated_count_ << std::endl; std::cout << "leak-detected=" << std::boolalpha << (ptr.manager().allocator().allocated_count_ > ptr.manager().allocator().deallocated_count_) << std::endl; - ocl::memory::must_pass(ptr); + ocl::standard_error_handler err; + ocl::memory::must_pass(ptr, err); return EXIT_SUCCESS; } |
