From 3f4d5b30a591726d0c3f7739ce9b33eade3a3973 Mon Sep 17 00:00:00 2001 From: deeaitch Date: Fri, 27 Feb 2026 21:42:17 -0500 Subject: [PATCH] Added example aoutput. --- typefactory/main.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/typefactory/main.cpp b/typefactory/main.cpp index 22b9cc0..5eabf41 100644 --- a/typefactory/main.cpp +++ b/typefactory/main.cpp @@ -35,8 +35,8 @@ int main() { auto a = factory.create ("one", 10); auto b = factory.creator ("two") (10); // advanced API: get creator function - (void)a->get(); - (void)b->get(); + std::cout << a->get() << std::endl; + std::cout << b->get() << std::endl; return 0; }