1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2024-12-25 18:15:00 +00:00

Work around a regression in MSVC

This commit is contained in:
Evil Eye 2024-12-09 17:23:17 +01:00
parent 51579a8c5d
commit 6090bfcdab
2 changed files with 4 additions and 2 deletions

View File

@ -28,7 +28,8 @@ namespace ESM
int32_t getX() const { return mX; }
int32_t getY() const { return mY; }
friend inline constexpr auto tie(const ESM3ExteriorCellRefId& value) noexcept
friend inline constexpr std::tuple<const int32_t&, const int32_t&> tie(
const ESM3ExteriorCellRefId& value) noexcept
{
return std::tie(value.mX, value.mY);
}

View File

@ -25,7 +25,8 @@ namespace ESM
std::string toDebugString() const;
friend inline constexpr auto tie(const IndexRefId& value) noexcept
friend inline constexpr std::tuple<const ESM::RecNameInts&, const uint32_t&> tie(
const IndexRefId& value) noexcept
{
return std::tie(value.mRecordType, value.mValue);
}