summaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/ocl/core/config.hpp9
-rw-r--r--include/ocl/core/error_handler.hpp4
-rw-r--r--include/ocl/fix/checksum.hpp10
-rw-r--r--include/ocl/fix/parser.hpp (renamed from include/ocl/fix/fix.hpp)11
-rw-r--r--include/ocl/memory/tracked_ptr.hpp2
5 files changed, 24 insertions, 12 deletions
diff --git a/include/ocl/core/config.hpp b/include/ocl/core/config.hpp
index de1ce76..59f2491 100644
--- a/include/ocl/core/config.hpp
+++ b/include/ocl/core/config.hpp
@@ -14,6 +14,15 @@
#include <boost/container/allocator.hpp>
#include <boost/assert.hpp>
+#include <cstddef>
+#include <cassert>
+#include <utility>
+#include <string>
+#include <vector>
+#include <cstdint>
+#include <sys/types.h>
+#include <unistd.h>
+
#ifdef __cplusplus
/// DLL/Dylib/So specific macro.
# define OCL_EXPORT_DECL extern "C" BOOST_SYMBOL_EXPORT
diff --git a/include/ocl/core/error_handler.hpp b/include/ocl/core/error_handler.hpp
index 717b522..a09f450 100644
--- a/include/ocl/core/error_handler.hpp
+++ b/include/ocl/core/error_handler.hpp
@@ -20,8 +20,8 @@ namespace ocl
explicit basic_error_handler() = default;
virtual ~basic_error_handler() = default;
- basic_error_handler& operator=(const basic_error_handler&) = delete;
- basic_error_handler(const basic_error_handler&) = delete;
+ basic_error_handler& operator=(const basic_error_handler&) = default;
+ basic_error_handler(const basic_error_handler&) = default;
template <bool throw_too = false>
void error(const std::basic_string<char>& msg)
diff --git a/include/ocl/fix/checksum.hpp b/include/ocl/fix/checksum.hpp
new file mode 100644
index 0000000..9205664
--- /dev/null
+++ b/include/ocl/fix/checksum.hpp
@@ -0,0 +1,10 @@
+/*
+ * File: fix/checksum.hpp
+ * Purpose: Financial Information Exchange checksum in C++
+ * Author: Amlal El Mahrouss (amlal@nekernel.org)
+ * Copyright 2025, Amlal El Mahrouss, licensed under the Boost Software License.
+ */
+
+#pragma once
+
+#include <core/config.hpp>
diff --git a/include/ocl/fix/fix.hpp b/include/ocl/fix/parser.hpp
index 85a8b70..a513a1f 100644
--- a/include/ocl/fix/fix.hpp
+++ b/include/ocl/fix/parser.hpp
@@ -1,5 +1,5 @@
/*
- * File: fix/fix.hpp
+ * File: fix/parser.hpp
* Purpose: Financial Information Exchange parser in C++
* Author: Amlal El Mahrouss (amlal@nekernel.org)
* Copyright 2025, Amlal El Mahrouss, licensed under the Boost Software License.
@@ -8,14 +8,7 @@
#ifndef _OCL_FIX_PARSER_HPP
#define _OCL_FIX_PARSER_HPP
-#include <cstddef>
-#include <cassert>
-#include <utility>
-#include <string>
-#include <vector>
-#include <cstdint>
-#include <sys/types.h>
-#include <unistd.h>
+#include <core/config.hpp>
namespace ocl::fix
{
diff --git a/include/ocl/memory/tracked_ptr.hpp b/include/ocl/memory/tracked_ptr.hpp
index fcaf898..029e424 100644
--- a/include/ocl/memory/tracked_ptr.hpp
+++ b/include/ocl/memory/tracked_ptr.hpp
@@ -1,6 +1,6 @@
/*
* File: memory/tracked_ptr.hpp
- * Purpose: Custom smart pointer implementation in C++
+ * Purpose: Strict pointer type implementation in C++
* Author: Amlal El Mahrouss (amlal@nekernel.org)
* Copyright 2025, Amlal El Mahrouss, licensed under the Boost Software License.
*/