summaryrefslogtreecommitdiffhomepage
path: root/include/ocl
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlal@nekernel.org>2025-11-24 12:08:44 -0500
committerAmlal El Mahrouss <amlal@nekernel.org>2025-11-24 12:08:44 -0500
commit20748b34ad43f69ec127a4caab05196e2fd38705 (patch)
treeddca2aea7585f06d58e27004757ae758fdb655b1 /include/ocl
parent33f01fc324cbdbed29bd891a994a31221b349417 (diff)
hotpatch: urgent patches in shell scripts and library.
Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
Diffstat (limited to 'include/ocl')
-rw-r--r--include/ocl/core/chunk_string.hpp11
-rw-r--r--include/ocl/core/config.hpp (renamed from include/ocl/core/includes.hpp)8
2 files changed, 10 insertions, 9 deletions
diff --git a/include/ocl/core/chunk_string.hpp b/include/ocl/core/chunk_string.hpp
index ccbc10a..c60b0a4 100644
--- a/include/ocl/core/chunk_string.hpp
+++ b/include/ocl/core/chunk_string.hpp
@@ -20,14 +20,17 @@ namespace ocl
template <typename char_type, std::size_t max_chunk_size>
class basic_chunk_string final
{
+ public:
+ using condition_type = bool;
+
private:
char_type packed_chunks_[max_chunk_size] = {0};
std::size_t chunk_total_{};
- bool bad_{false};
+ condition_type bad_{false};
public:
- const bool& bad{bad_};
+ const condition_type& bad{bad_};
basic_chunk_string() = default;
@@ -53,9 +56,7 @@ namespace ocl
if (in == nullptr || bad_)
return *this;
- const auto& sz = std::strlen(in);
-
- this->operator+=(std::basic_string<char_type>(in, sz));
+ this->operator+=(std::basic_string<char_type>(in));
return *this;
}
diff --git a/include/ocl/core/includes.hpp b/include/ocl/core/config.hpp
index 8d94cc0..2ea1399 100644
--- a/include/ocl/core/includes.hpp
+++ b/include/ocl/core/config.hpp
@@ -7,16 +7,16 @@
#pragma once
-#include <memory>
-#include <iostream>
-#include <string>
-
#include <boost/config.hpp>
#include <boost/core/nvp.hpp>
#include <boost/core/demangle.hpp>
#include <boost/core/null_deleter.hpp>
#include <boost/container/allocator.hpp>
+#include <memory>
+#include <iostream>
+#include <string>
+
namespace ocl
{
#ifdef OCL_USE_UTF8