diff --git a/tools/halide_image_io.h b/tools/halide_image_io.h index 7cfa04a860b6..a8cb5f7d293a 100644 --- a/tools/halide_image_io.h +++ b/tools/halide_image_io.h @@ -2347,7 +2347,7 @@ class load_and_convert_image { // a runtime error will occur. template void save_image(ImageType &im, const std::string &filename) { - auto im_d = im.template as(); + auto im_d = im.template as(); (void)save(im_d, filename); }