Skip to content

Fix compilation for Unreal 5.4 where MakeConstArrayView is undefined#54

Open
nicoell-threedy wants to merge 1 commit into
VesCodes:Mainfrom
nicoell-threedy:fix/ue-5.4
Open

Fix compilation for Unreal 5.4 where MakeConstArrayView is undefined#54
nicoell-threedy wants to merge 1 commit into
VesCodes:Mainfrom
nicoell-threedy:fix/ue-5.4

Conversation

@nicoell-threedy
Copy link
Copy Markdown

This PR replaces MakeConstArrayView and uses TArrayView constructor directly, matching definition of MakeConstArrayView which is not available in Unreal 5.4

template<typename ElementType>
[[nodiscard]] TArrayView<const ElementType> MakeConstArrayView(const ElementType* Pointer UE_LIFETIMEBOUND, int32 Size)
{
	return TArrayView<const ElementType>(Pointer, Size);
}

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