Skip to content

Commit

Permalink
Revert "don't assume size_t"
Browse files Browse the repository at this point in the history
This reverts commit 3e4139a.
  • Loading branch information
yaito3014 committed Jul 23, 2024
1 parent 3e4139a commit b69a9b2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Siv3D/include/Siv3D/detail/Indexed.ipp
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ namespace s3d

struct Iterator
{
using value_type = std::tuple<Type, typename std::iterator_traits<It>::value_type>;
using reference = std::tuple<Type, decltype(*std::declval<It&>())>;
using value_type = std::tuple<size_t, typename std::iterator_traits<It>::value_type>;
using reference = std::tuple<size_t, decltype(*std::declval<It&>())>;
size_t index;
It it;
constexpr bool operator != (const Iterator& other) const { return it != other.it; }
Expand Down Expand Up @@ -50,8 +50,8 @@ namespace s3d
{
struct Iterator
{
using value_type = std::tuple<Type, typename std::iterator_traits<It>::value_type>;
using reference = std::tuple<Type, decltype(*std::declval<It&>())>;
using value_type = std::tuple<size_t, typename std::iterator_traits<It>::value_type>;
using reference = std::tuple<size_t, decltype(*std::declval<It&>())>;
size_t index;
It it;
constexpr bool operator != (const Iterator& other) const { return it != other.it; }
Expand Down

0 comments on commit b69a9b2

Please sign in to comment.