summaryrefslogtreecommitdiffhomepage
path: root/example
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlal@nekernel.org>2025-12-26 09:46:53 +0100
committerAmlal El Mahrouss <amlal@nekernel.org>2025-12-26 09:47:53 +0100
commitf69ab8b1fcc0e1cca1c1dff96e204440f1f4f7f3 (patch)
treeafa1bab2b960d042a96c7ab71cfcbd9a02a75c20 /example
parentceb8ca661c7d6cdb10be6593f3eedabf42846b0e (diff)
feat: update file header.
Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
Diffstat (limited to 'example')
-rw-r--r--example/hash_crc32_example/example.cc5
-rw-r--r--example/option_example/example.cc7
-rw-r--r--example/simple_allocator_op/example.cc5
-rw-r--r--example/smart_ptr_example/example.cc5
4 files changed, 21 insertions, 1 deletions
diff --git a/example/hash_crc32_example/example.cc b/example/hash_crc32_example/example.cc
index be6780f..d2f045e 100644
--- a/example/hash_crc32_example/example.cc
+++ b/example/hash_crc32_example/example.cc
@@ -1,3 +1,8 @@
+// Copyright 2025, Amlal El Mahrouss (amlal@nekernel.org)
+// Distributed under the Boost Software License, Version 1.0. (See accompanying
+// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
+// Official repository: https://github.com/ocl-org/core
+
#include <ocl/crc_hash.hpp>
#include <ocl/print.hpp>
#include <ocl/option.hpp>
diff --git a/example/option_example/example.cc b/example/option_example/example.cc
index c784dec..b2c3f95 100644
--- a/example/option_example/example.cc
+++ b/example/option_example/example.cc
@@ -1,3 +1,8 @@
+// Copyright 2025, Amlal El Mahrouss (amlal@nekernel.org)
+// Distributed under the Boost Software License, Version 1.0. (See accompanying
+// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
+// Official repository: https://github.com/ocl-org/core
+
#include <ocl/crc_hash.hpp>
#include <ocl/print.hpp>
#include <ocl/option.hpp>
@@ -6,7 +11,7 @@ struct invalid_callable {
explicit invalid_callable() = default;
void operator()(const char* reason)
{
- ocl::detail::throw_runtime_error(BOOST_CURRENT_LOCATION.to_string());
+ ocl::detail::throw_runtime_error();
}
};
diff --git a/example/simple_allocator_op/example.cc b/example/simple_allocator_op/example.cc
index 433da22..f09f60f 100644
--- a/example/simple_allocator_op/example.cc
+++ b/example/simple_allocator_op/example.cc
@@ -1,3 +1,8 @@
+// Copyright 2025, Amlal El Mahrouss (amlal@nekernel.org)
+// Distributed under the Boost Software License, Version 1.0. (See accompanying
+// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
+// Official repository: https://github.com/ocl-org/core
+
#include <ocl/print.hpp>
#include <ocl/allocator_op.hpp>
diff --git a/example/smart_ptr_example/example.cc b/example/smart_ptr_example/example.cc
index e0f8555..abe5aaf 100644
--- a/example/smart_ptr_example/example.cc
+++ b/example/smart_ptr_example/example.cc
@@ -1,3 +1,8 @@
+// Copyright 2025, Amlal El Mahrouss (amlal@nekernel.org)
+// Distributed under the Boost Software License, Version 1.0. (See accompanying
+// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
+// Official repository: https://github.com/ocl-org/core
+
#include <ocl/crc_hash.hpp>
#include <ocl/print.hpp>
#include <ocl/smart_ptr.hpp>