summaryrefslogtreecommitdiffhomepage
path: root/lib
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlal@nekernel.org>2025-07-09 15:09:17 +0200
committerAmlal El Mahrouss <amlal@nekernel.org>2025-07-09 15:09:17 +0200
commit7c410d5b2c595d0a6f91f7a712697da52503d296 (patch)
tree86f89c6532c0f94029e84b5f77919dd7553603fd /lib
parent160c5835287993cdafacbb3f42d6bec64ac4c6c1 (diff)
feat: fix: to_string shall return `std::basic_string<char_type>`
Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
Diffstat (limited to 'lib')
-rw-r--r--lib/fix/parser.hpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/fix/parser.hpp b/lib/fix/parser.hpp
index d4fc704..77e76fb 100644
--- a/lib/fix/parser.hpp
+++ b/lib/fix/parser.hpp
@@ -70,10 +70,10 @@ namespace snu::fix
/// @brief Convert range to usable string.
template <typename char_type>
- inline std::string to_string(range<char_type>& range) noexcept
+ inline std::basic_string<char_type> to_string(range<char_type>& range) noexcept
{
if (range.length_ < 0)
- return "";
+ return std::basic_string<char_type>{};
return std::basic_string<char_type>(range.ascii_bytes_, range.length_);
}