From 2036ad08bfae6bc14ab3285d73fdccd382c1f1e8 Mon Sep 17 00:00:00 2001 From: Keuin Date: Wed, 13 Apr 2022 16:24:16 +0800 Subject: Remove const qualifier to gain move semantic. --- bitmap.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bitmap.h b/bitmap.h index 8906ec5..1e35395 100644 --- a/bitmap.h +++ b/bitmap.h @@ -66,7 +66,7 @@ using pixel8b = pixel; template class bitmap { - const unsigned width, height; + unsigned width, height; std::vector> content; // pixels scanned by rows, from top to bottom pixel &image(unsigned x, unsigned y) { -- cgit v1.2.3