mirror of
https://github.com/gbdev/rgbds.git
synced 2026-09-17 19:27:05 +00:00
Use trailing return type for begin()/end()
This commit is contained in:
+4
-4
@@ -73,8 +73,8 @@ public:
|
|||||||
}
|
}
|
||||||
decltype(_colors) const &raw() const { return _colors; }
|
decltype(_colors) const &raw() const { return _colors; }
|
||||||
|
|
||||||
auto begin() const { return _colors.begin(); }
|
auto begin() const -> decltype(_colors)::const_iterator { return _colors.begin(); }
|
||||||
auto end() const { return _colors.end(); }
|
auto end() const -> decltype(_colors)::const_iterator { return _colors.end(); }
|
||||||
};
|
};
|
||||||
|
|
||||||
struct Image {
|
struct Image {
|
||||||
@@ -755,8 +755,8 @@ struct UniqueTiles {
|
|||||||
|
|
||||||
size_t size() const { return tiles.size(); }
|
size_t size() const { return tiles.size(); }
|
||||||
|
|
||||||
auto begin() const { return tiles.begin(); }
|
auto begin() const -> decltype(tiles)::const_iterator { return tiles.begin(); }
|
||||||
auto end() const { return tiles.end(); }
|
auto end() const -> decltype(tiles)::const_iterator { return tiles.end(); }
|
||||||
};
|
};
|
||||||
|
|
||||||
// Generate tile data while deduplicating unique tiles (via mirroring if enabled)
|
// Generate tile data while deduplicating unique tiles (via mirroring if enabled)
|
||||||
|
|||||||
Reference in New Issue
Block a user