summaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlal@nekernel.org>2025-12-24 16:53:50 +0100
committerAmlal El Mahrouss <amlal@nekernel.org>2025-12-24 16:54:08 +0100
commit70cd59d1e9f831c8c0b5d0bd379218ff5db8314b (patch)
treea91fb2d07ce17a7a2daed8735b46d0189c09e648 /include
parent700510fe095085572250830dd7c2ff8b41023031 (diff)
feat: lib: add CMake build support.
Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
Diffstat (limited to 'include')
-rw-r--r--include/ocl/fix/parser.hpp13
1 files changed, 8 insertions, 5 deletions
diff --git a/include/ocl/fix/parser.hpp b/include/ocl/fix/parser.hpp
index c288869..ffac652 100644
--- a/include/ocl/fix/parser.hpp
+++ b/include/ocl/fix/parser.hpp
@@ -26,7 +26,6 @@ namespace ocl::fix
using tag_type = std::string;
using value_type = std::string;
-
struct range final
{
char* bytes_{nullptr};
@@ -97,14 +96,18 @@ namespace ocl::fix
/// @brief visitor object which returns a fix::range_buffer instance.
class visitor final
{
- struct impl;
- std::unique_ptr<impl> impl_;
+ struct impl;
+ std::unique_ptr<impl> impl_;
+
+#ifndef OCL_FIX_HAS_IMPL
+ struct impl {};
+#endif
public:
visitor();
- ~visitor();
+ ~visitor();
- /// \brief Alias of visit.
+ /// \brief Alias of visit.
range_buffer operator()(const std::string& in);
/// @brief Visits a FIX message and parse it into a range_buffer object.