diff options
| author | Amlal El Mahrouss <amlal@nekernel.org> | 2026-01-01 19:43:19 +0100 |
|---|---|---|
| committer | Amlal El Mahrouss <amlal@nekernel.org> | 2026-01-01 19:43:19 +0100 |
| commit | 0ac8ded5b0046be772461e65bcb81dc09c4db810 (patch) | |
| tree | e43d4eac5d466af73635e34fb8584178cf7adeee /example | |
| parent | 7ea24be51ef95a864d4e3dde7395780244a69f15 (diff) | |
feat! API and namespace improvements.
Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
Diffstat (limited to 'example')
| -rw-r--r-- | example/fix_tag_example/example.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/example/fix_tag_example/example.cpp b/example/fix_tag_example/example.cpp index ba788de..cb758c2 100644 --- a/example/fix_tag_example/example.cpp +++ b/example/fix_tag_example/example.cpp @@ -1,7 +1,7 @@ #include <ocl/fix/parser.hpp> #include <ocl/fix/checksum.hpp> -constexpr char default_fix[] = { +constexpr char const default_fix[] = { '8', '=', 'F', 'I', 'X', '.', '4', '.', '2', 0x01, '9', '=', '8', '7', 0x01, // BodyLength = 87 '3', '5', '=', 'A', 0x01, @@ -42,8 +42,7 @@ int main(int argc, char** argv) ocl::io::print(":value=", fix["49"], "\n"); ocl::io::print(":checksum=", ocl::fix::try_index_checksum(fix), "\n"); - ocl::io::print(":checksum=", ocl::fix::operators::fix::checksum(default_fix_unchecked, - sizeof(default_fix_unchecked)) + 1, "\n"); + ocl::io::print(":checksum=", ocl::fix::operators::checksum(default_fix_unchecked), "\n"); return 0; } |
