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; }