summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlal@nekernel.org>2025-11-22 08:10:05 +0100
committerAmlal El Mahrouss <amlal@nekernel.org>2025-11-22 08:14:15 +0100
commit32af6ab79fe52efa6fc773a672e2732388999692 (patch)
tree9c6e64d288199110887e599458b212a36183572f
parent97cb8e1b8a4e1df3ed65ac5aa684c7babd1771dc (diff)
AMEND: fix: fix.hpp: put length on string constructor directly.
Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
-rw-r--r--dev/lib/fix/fix.hpp6
1 files changed, 2 insertions, 4 deletions
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<char_type> in_tmp{};
-
- in_tmp.reserve(in.size());
+ std::basic_string<char_type> in_tmp{"", in.size()};
try
{
@@ -205,7 +203,7 @@ namespace ocl::fix
{
if (!basic_range.is_valid())
{
- handler.template error<true>("Invalid FIX packet.");
+ handler.template error<true>("Invalid FIX Message.");
}
}