summaryrefslogtreecommitdiffhomepage
path: root/dev/lib/fix
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlal@nekernel.org>2025-08-03 18:54:30 +0100
committerAmlal El Mahrouss <amlal@nekernel.org>2025-08-03 18:58:58 +0100
commit4b4d6299d28467b9c234e40004bae1d40b37b0dc (patch)
treea1d8b86f2a1a747200f8c97a43c46704b9869241 /dev/lib/fix
parentd05275f76cf96d577d51ee937ba3aac3be8b2d03 (diff)
feat! rework crc32 module, and refactored other modules for future usages.
Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
Diffstat (limited to 'dev/lib/fix')
-rw-r--r--dev/lib/fix/parser.hpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/dev/lib/fix/parser.hpp b/dev/lib/fix/parser.hpp
index f2509c7..a195eb3 100644
--- a/dev/lib/fix/parser.hpp
+++ b/dev/lib/fix/parser.hpp
@@ -30,12 +30,12 @@ namespace snu::fix
struct basic_range_data;
/// @brief Buffer+Length structure
- template <typename char_type>
+ template <typename char_type = char>
using range_ptr_t = basic_range<char_type>;
namespace detail
{
- template <typename char_type>
+ template <typename char_type = char>
const char_type* begin_fix();
template <>
@@ -57,7 +57,7 @@ namespace snu::fix
}
} // namespace detail
- template <typename char_type>
+ template <typename char_type = char>
struct basic_range final
{
char_type* bytes_;
@@ -76,7 +76,7 @@ namespace snu::fix
/// @brief Convert basic_range to usable string.
/// @note This function assumes that the basic_range is valid and contains ASCII bytes.
- template <typename char_type>
+ template <typename char_type = char>
inline std::basic_string<char_type> to_string(basic_range<char_type>& basic_range) noexcept
{
if (basic_range.length_ < 0)
@@ -86,7 +86,7 @@ namespace snu::fix
}
/// @brief a basic_range object containing the FIX packet values.
- template <typename char_type>
+ template <typename char_type = char>
class basic_range_data final
{
public:
@@ -133,7 +133,7 @@ namespace snu::fix
};
/// @brief basic_visitor object which returns a fix::basic_range_data instance.
- template <typename char_type>
+ template <typename char_type = char>
class basic_visitor final
{
public: