summaryrefslogtreecommitdiffhomepage
path: root/examples/fix/fix.cc
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlal@nekernel.org>2025-11-25 10:16:37 -0500
committerAmlal El Mahrouss <amlal@nekernel.org>2025-11-25 10:17:05 -0500
commite96beb23f6d09d323f5cbd2ba9f8b6d4fcc7428b (patch)
tree578f04d916ad699e967df1134fa44d4a10b81b8e /examples/fix/fix.cc
parent7d467583280e3cd2d0b25f6e7025502f7ebd3402 (diff)
feat: fix: use const T& when calling `visit`.
Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
Diffstat (limited to 'examples/fix/fix.cc')
-rw-r--r--examples/fix/fix.cc10
1 files changed, 6 insertions, 4 deletions
diff --git a/examples/fix/fix.cc b/examples/fix/fix.cc
index 8c019ce..f52246f 100644
--- a/examples/fix/fix.cc
+++ b/examples/fix/fix.cc
@@ -1,11 +1,10 @@
/*
fix example
- written by Amlal El Mahrouss.
- licensed under the Boost Software License
+ Written by Amlal El Mahrouss.
+ Licensed under the Boost Software License
*/
#include <core/error_handler.hpp>
-#include <net/modem.hpp>
#include <fix/parser.hpp>
#include <iostream>
#include <unistd.h>
@@ -38,8 +37,11 @@ int main(int argc, char** argv)
ocl::basic_error_handler handler;
ocl::fix::must_pass<char, ocl::basic_error_handler>(fix, handler);
- ocl::io::print(":key=9\n");
+ ocl::io::print(":key=35\n");
ocl::io::print(":value=", fix["35"], "\n");
+ ocl::io::print(":key=49\n");
+ ocl::io::print(":value=", fix["49"], "\n");
+
return 0;
}