Skip to content

Commit

Permalink
Merge branch 'tieped' into 'master'
Browse files Browse the repository at this point in the history
Work around a regression in MSVC

See merge request OpenMW/openmw!4478
  • Loading branch information
Capostrophic committed Dec 11, 2024
2 parents 51579a8 + 6090bfc commit e4cced0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion components/esm/esm3exteriorcellrefid.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down
3 changes: 2 additions & 1 deletion components/esm/indexrefid.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit e4cced0

Please sign in to comment.