diff options
| author | Amlal El Mahrouss <amlal@nekernel.org> | 2025-08-27 13:27:55 +0200 |
|---|---|---|
| committer | Amlal El Mahrouss <amlal@nekernel.org> | 2025-08-27 13:27:55 +0200 |
| commit | 7ea0c074329dd55de43ea3b07ff545228cb0d729 (patch) | |
| tree | 0d5062fd2e715b6e0d0b31c99c80e1870ddcd889 /dev/lib/fix/parser.hpp | |
| parent | c4f4155f6f5a30641180050a1a5ea8967f6392fa (diff) | |
feat: `must_pass` should call error_handler instead of trapping. (FIX)
Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
Diffstat (limited to 'dev/lib/fix/parser.hpp')
| -rw-r--r-- | dev/lib/fix/parser.hpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/dev/lib/fix/parser.hpp b/dev/lib/fix/parser.hpp index a93b846..6e8e57a 100644 --- a/dev/lib/fix/parser.hpp +++ b/dev/lib/fix/parser.hpp @@ -201,12 +201,12 @@ namespace ocl::fix } }; - template <typename char_type = char> - inline void must_pass(basic_range_data<char_type>& basic_range) + template <typename char_type = char, typename error_handler> + inline void must_pass(basic_range_data<char_type>& basic_range, error_handler& handler) { if (!basic_range.is_valid()) { - ::kill(::getpid(), SIGTRAP); + handler("Invalid FIX packet"); } } |
