shithub: rgbds

Download patch

ref: 3bd60785373ddb2d9c201c92933271a12a177ba1
parent: 5409d0d15a257232fb09147021e66530b71e926d
author: ISSOtm <eldredhabert0@gmail.com>
date: Fri Mar 4 20:59:34 EST 2022

Tag `AssignedProtos` iterator as forward

That's what it actually is, oops
(Required for `minmax_element`)

--- a/src/gfx/pal_packing.cpp
+++ b/src/gfx/pal_packing.cpp
@@ -83,7 +83,7 @@
 		using value_type = ProtoPalAttrs;
 		using pointer = Constness<value_type> *;
 		using reference = Constness<value_type> &;
-		using iterator_category = std::input_iterator_tag;
+		using iterator_category = std::forward_iterator_tag;
 
 	private:
 		Constness<decltype(_assigned)> *_array = nullptr;