From b78f7587b4b6becdd48a57d42f1f75025ced3c9a Mon Sep 17 00:00:00 2001 From: Steven Johnson Date: Tue, 5 Apr 2022 16:48:06 -0700 Subject: [PATCH] Halide::Tools::save_image() should accept buffers with `const` types --- tools/halide_image_io.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); }