From 32af6ab79fe52efa6fc773a672e2732388999692 Mon Sep 17 00:00:00 2001 From: Amlal El Mahrouss Date: Sat, 22 Nov 2025 08:10:05 +0100 Subject: AMEND: fix: fix.hpp: put length on string constructor directly. Signed-off-by: Amlal El Mahrouss --- dev/lib/fix/fix.hpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'dev') diff --git a/dev/lib/fix/fix.hpp b/dev/lib/fix/fix.hpp index 6f02fa1..4f02e28 100644 --- a/dev/lib/fix/fix.hpp +++ b/dev/lib/fix/fix.hpp @@ -158,9 +158,7 @@ namespace ocl::fix if (in.empty()) return ret; - static thread_local std::basic_string in_tmp{}; - - in_tmp.reserve(in.size()); + std::basic_string in_tmp{"", in.size()}; try { @@ -205,7 +203,7 @@ namespace ocl::fix { if (!basic_range.is_valid()) { - handler.template error("Invalid FIX packet."); + handler.template error("Invalid FIX Message."); } } -- cgit v1.2.3