diff options
Diffstat (limited to 'example/smart_ptr_example/example.cpp')
| -rw-r--r-- | example/smart_ptr_example/example.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/example/smart_ptr_example/example.cpp b/example/smart_ptr_example/example.cpp index fbf8f3d..61903f5 100644 --- a/example/smart_ptr_example/example.cpp +++ b/example/smart_ptr_example/example.cpp @@ -10,11 +10,11 @@ /// \brief Smart pointer example. auto main(int argc, char** argv) -> int { - ocl::shared_ptr<std::ostream> smart = ocl::delete_ptr(&std::cout); - *smart << "hello, world\n"; + ocl::shared_ptr<std::ostream> smart = ocl::delete_ptr(&std::cout); + *smart << "hello, world\n"; - ocl::tracked_ptr<int> tracked = ocl::make_tracked<int>(10); - *smart << *tracked << "\n"; - - return EXIT_SUCCESS; + ocl::tracked_ptr<int> tracked = ocl::make_tracked<int>(10); + *smart << *tracked << "\n"; + + return EXIT_SUCCESS; } |
