diff options
| author | Amlal El Mahrouss <amlal@nekernel.org> | 2025-12-09 02:33:57 +0100 |
|---|---|---|
| committer | Amlal El Mahrouss <amlal@nekernel.org> | 2025-12-09 02:33:57 +0100 |
| commit | d00417533e197bc33faa4a14602e098a94f5a955 (patch) | |
| tree | 5c13849af857197ae6be936942a22d237db5d2b6 /include/ocl/fix/parser.hpp | |
| parent | 7b7c482846befb1fd7b01e2edc372e0faf45f825 (diff) | |
chore: codebase cleanup.
Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
Diffstat (limited to 'include/ocl/fix/parser.hpp')
| -rw-r--r-- | include/ocl/fix/parser.hpp | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/include/ocl/fix/parser.hpp b/include/ocl/fix/parser.hpp index 139f171..985fda8 100644 --- a/include/ocl/fix/parser.hpp +++ b/include/ocl/fix/parser.hpp @@ -87,7 +87,8 @@ namespace ocl::fix bool is_valid() { - return this->operator[]("8").empty() == false; + constexpr auto magic_tag = "8"; + return this->operator[](magic_tag).empty() == false; } explicit operator bool() @@ -103,20 +104,20 @@ namespace ocl::fix /// AMLALE: Yeah... static constexpr const int soh = '\x01'; static constexpr const char eq = '='; - static constexpr uint32_t base = 10U; + static constexpr unsigned base = 10U; explicit visitor() = default; ~visitor() = default; - visitor& operator=(const visitor&) = default; - visitor(const visitor&) = default; + visitor& operator=(const visitor&) = delete; + visitor(const visitor&) = delete; range_buffer operator()(const std::string& in) { return this->visit(in); } - /// @brief Visit a FIX message and parse it into a range_buffer object. + /// @brief Visits a FIX message and parse it into a range_buffer object. /// @param in The input FIX message as a string. /// @warning This function may throw exceptions. range_buffer visit(const std::string& in) |
