arm_compute v18.05
[platform/upstream/armcl.git] / utils / Utils.cpp
index 8a2d118..a5c6a95 100644 (file)
@@ -67,16 +67,16 @@ void discard_comments_and_spaces(std::ifstream &fs)
 } // namespace
 
 #ifndef BENCHMARK_EXAMPLES
-int run_example(int argc, char **argv, Example &example)
+int run_example(int argc, char **argv, std::unique_ptr<Example> example)
 {
     std::cout << "\n"
               << argv[0] << "\n\n";
 
     try
     {
-        example.do_setup(argc, argv);
-        example.do_run();
-        example.do_teardown();
+        example->do_setup(argc, argv);
+        example->do_run();
+        example->do_teardown();
 
         std::cout << "\nTest passed\n";
         return 0;