early-access version 1698

This commit is contained in:
pineappleEA
2021-05-20 04:30:17 +02:00
parent 26aa465a3d
commit a2ba3b7d14
4 changed files with 136 additions and 44 deletions

View File

@@ -109,7 +109,8 @@ struct OffsetOfCalculator {
}
}
return (next - start) * sizeof(MemberType) + Offset;
return static_cast<ptrdiff_t>(static_cast<size_t>(next - start) * sizeof(MemberType) +
Offset);
}
static constexpr std::ptrdiff_t OffsetOf(MemberType ParentType::*member) {