You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
Moved operator== to be hidden friend instead of put directly in global namespace
Moved GetTypeHash function to be hidden friend instead of put directly in global namespace. Note that the function/operator needs to be fully inlined in the type or placed in the cpp. If the function is added as friend but then implemented outside the type then hidden friend optimization won't work. This should improve compile time somewhat according to msvc devs. #rb Steve.Robb #preflight 6360b7052b5338aceb26471b [CL 22889837 by henrik karlsson in ue5-main branch]
This commit is contained in:
@@ -789,12 +789,12 @@ struct FTargetPlatform
|
||||
return Ordinal == Other.Ordinal;
|
||||
}
|
||||
|
||||
friend inline uint32 GetTypeHash(const FTargetPlatform& Key) { return Key.GetOrdinal(); }
|
||||
|
||||
private:
|
||||
uint32 Ordinal = 0;
|
||||
};
|
||||
|
||||
inline uint32 GetTypeHash(const FTargetPlatform& Key) { return Key.GetOrdinal(); }
|
||||
|
||||
/**
|
||||
* Target platform set implementation using bitmask for compactness
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user