summaryrefslogtreecommitdiffhomepage
path: root/dev/lib/fix
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlal@nekernel.org>2025-11-18 07:44:48 +0100
committerAmlal El Mahrouss <amlal@nekernel.org>2025-11-18 07:55:34 +0100
commit9eec329ebdf4cf079619edb58dbcd78ce42b8626 (patch)
treeb9b6d442f8a92fea4c8943a1504dba105b133596 /dev/lib/fix
parentce3ce66e005eb54b315dbc0c78a74e56e2db4191 (diff)
feat: lib: error_handler improvements, new method. FIX module improvements.
Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
Diffstat (limited to 'dev/lib/fix')
-rw-r--r--dev/lib/fix/fix.hpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/dev/lib/fix/fix.hpp b/dev/lib/fix/fix.hpp
index 9490004..67376e3 100644
--- a/dev/lib/fix/fix.hpp
+++ b/dev/lib/fix/fix.hpp
@@ -89,10 +89,10 @@ namespace ocl::fix
class basic_range_data final
{
public:
- std::size_t magic_len_;
- std::basic_string<char_type> magic_;
- std::size_t body_len_;
- std::vector<std::pair<std::basic_string<char_type>, std::basic_string<char_type>>> body_;
+ std::size_t magic_len_{};
+ std::basic_string<char_type> magic_{};
+ std::size_t body_len_{};
+ std::vector<std::pair<std::basic_string<char_type>, std::basic_string<char_type>>> body_{};
static inline const char_type* begin = detail::begin_fix<char_type>();
@@ -205,7 +205,7 @@ namespace ocl::fix
{
if (!basic_range.is_valid())
{
- handler("Invalid FIX packet");
+ handler.template error<true>("Invalid FIX packet");
}
}