summaryrefslogtreecommitdiffhomepage
path: root/dev/examples/opt
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlal@nekernel.org>2025-08-01 09:09:57 +0100
committerAmlal El Mahrouss <amlal@nekernel.org>2025-08-01 09:09:57 +0100
commit284708d1e8a14867b5276a8e760588d8531835d8 (patch)
tree9f651db6d8b51bf97f2fd2fb41efbf5e53498eea /dev/examples/opt
parent574d373163f7edade42e935b9e6957cdaf08d94b (diff)
feat: generic: new `except` module, network model for FIX, and tracked_ptr improvements.
feat: introduce the `must_pass` concept to validate a container. Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
Diffstat (limited to 'dev/examples/opt')
-rw-r--r--dev/examples/opt/opt.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/dev/examples/opt/opt.cc b/dev/examples/opt/opt.cc
index a914d8d..d1324e7 100644
--- a/dev/examples/opt/opt.cc
+++ b/dev/examples/opt/opt.cc
@@ -25,7 +25,7 @@ static auto do_some(const std::string recv_data, const std::string check_data)
const int hash_to_check = do_hash(check_data); /* here we assume this should match opt_hash */
const int opt_hash = do_hash(recv_data); /* we assume that the hash is correct */
- auto opt = snu::opt::opt(snu::opt::eval_eq(hash_to_check, opt_hash)); /* do the compute */
+ auto opt = snu::opt(snu::eval_eq(hash_to_check, opt_hash)); /* do the compute */
return opt;
}
@@ -34,7 +34,7 @@ int main(int argc, char** argv)
{
// ... let's assume we fetch data from network...
- snu::println("Testing data...");
+ snu::io::println("Testing data...");
auto opt = do_some("Ohio", "Ohio");
opt.expect("Checksum failed, Ohio isn't Ohio!");