summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlal@nekernel.org>2025-12-29 22:43:23 +0100
committerAmlal El Mahrouss <amlal@nekernel.org>2025-12-29 22:43:23 +0100
commited4f331bc96b4abb711c5b47c969d5ecb3166e15 (patch)
tree9c16e5828fed25aa5da10ab4f6ef2aad5243978d
parent86e7686916a063082111be1b4831c201f24f8adf (diff)
feat: fix CMake example, update free functions.
Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
-rw-r--r--example/fix_tag_example/CMakeLists.txt8
-rw-r--r--example/fix_tag_example/example.cpp (renamed from example/fix_tag_example/example.cc)0
-rw-r--r--include/ocl/fix.hpp6
-rw-r--r--include/ocl/fix/parser.hpp4
-rw-r--r--test/fix_basic/fix.test.cpp4
5 files changed, 12 insertions, 10 deletions
diff --git a/example/fix_tag_example/CMakeLists.txt b/example/fix_tag_example/CMakeLists.txt
index b9a80db..57bec7a 100644
--- a/example/fix_tag_example/CMakeLists.txt
+++ b/example/fix_tag_example/CMakeLists.txt
@@ -1,4 +1,4 @@
-
+# AMLALE: Hm?
cmake_minimum_required(VERSION 3.15...3.31)
project(
@@ -6,10 +6,10 @@ project(
VERSION 1.0
LANGUAGES CXX)
-find_package(Boost REQUIRED COMPONENTS container)
+find_package(Boost REQUIRED)
-add_executable(FixExample example.cc)
+add_executable(FixExample example.cpp)
set_property(TARGET FixExample PROPERTY CXX_STANDARD 20)
target_include_directories(FixExample PUBLIC ../../include/ocl)
-target_link_libraries(FixExample PRIVATE Boost::container)
+target_link_libraries(FixExample PRIVATE Boost)
diff --git a/example/fix_tag_example/example.cc b/example/fix_tag_example/example.cpp
index f7f3e76..f7f3e76 100644
--- a/example/fix_tag_example/example.cc
+++ b/example/fix_tag_example/example.cpp
diff --git a/include/ocl/fix.hpp b/include/ocl/fix.hpp
index d8c7a3b..26742bd 100644
--- a/include/ocl/fix.hpp
+++ b/include/ocl/fix.hpp
@@ -14,13 +14,13 @@
namespace ocl::fix
{
-
- template <typename It, class Pred>
+
+ template <typename It, class Pred>
It find(It begin, It end, Pred callable);
template <typename It, class Callable>
It find_if(It begin, It end, Callable callable);
-}
+} // namespace ocl::fix
#endif
diff --git a/include/ocl/fix/parser.hpp b/include/ocl/fix/parser.hpp
index ffac652..ceba660 100644
--- a/include/ocl/fix/parser.hpp
+++ b/include/ocl/fix/parser.hpp
@@ -100,7 +100,9 @@ namespace ocl::fix
std::unique_ptr<impl> impl_;
#ifndef OCL_FIX_HAS_IMPL
- struct impl {};
+ struct impl
+ {
+ };
#endif
public:
diff --git a/test/fix_basic/fix.test.cpp b/test/fix_basic/fix.test.cpp
index fd82965..82fb24c 100644
--- a/test/fix_basic/fix.test.cpp
+++ b/test/fix_basic/fix.test.cpp
@@ -22,8 +22,8 @@ constexpr char default_fix[] = {
'1', '0', '=', '1', '4', '3', 0x01, 0x00 // CheckSum = 143
};
-ocl::fix::visitor basic_visitor;
-ocl::fix::range_buffer fix = basic_visitor.visit(default_fix);
+static ocl::fix::visitor basic_visitor;
+static ocl::fix::range_buffer fix = basic_visitor.visit(default_fix);
TEST(FIXTest, FIXGoodPacket)
{