Skip to content

GameObjects: Resolve operator ambiguity - #36

Open
ZenoArrows wants to merge 1 commit into
ianpatt:masterfrom
ZenoArrows:operator-ambiguity
Open

GameObjects: Resolve operator ambiguity#36
ZenoArrows wants to merge 1 commit into
ianpatt:masterfrom
ZenoArrows:operator-ambiguity

Conversation

@ZenoArrows

Copy link
Copy Markdown

This resolves a build error when trying to Add/Insert entries into TESNPC::morphRegionData or TESNPC::morphSetData:

f4se\f4se\GameTypes.h(1012): error C2666: 'TESNPC::MorphSetData::operator ==': overloaded functions have similar conversions
  f4se\f4se\GameObjects.h(175): note: could be 'bool TESNPC::MorphSetData::operator ==(const UInt32) const'
  f4se\f4se\GameObjects.h(175): note: or 'bool TESNPC::MorphSetData::operator ==(const UInt32) const' [synthesized expression 'y == x']
  f4se\f4se\GameTypes.h(1012): note: or       'built-in C++ operator==(UInt32, UInt32)'
  f4se\f4se\GameTypes.h(1012): note: while trying to match the argument list '(Item, Item)'
          with
          [
              Item=TESNPC::MorphSetData
          ]
  f4se\f4se\GameTypes.h(1012): note: the template instantiation context (the oldest one first) is
  f4ee\CharGenInterface.cpp(131): note: see reference to class template instantiation 'tHashSet<TESNPC::MorphSetData,UInt32>' being compiled
  f4se\f4se\GameTypes.h(988): note: while compiling class template member function 'tHashSet<TESNPC::MorphSetData,UInt32>::InsertResult tHashSet<TESNPC::MorphSetData,UInt32>::Insert(Item *)'
          with
          [
              Item=TESNPC::MorphSetData
          ]
  f4se\f4se\GameTypes.h(1163): note: see the first reference to 'tHashSet<TESNPC::MorphSetData,UInt32>::Insert' in 'tHashSet<TESNPC::MorphSetData,UInt32>::Add'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant