Add UE 5.8 support#25
Open
dreisner64 wants to merge 1 commit into
Open
Conversation
Fixes compilation on Unreal Engine 5.8: - Boost 1.85 -> 1.88 (Mcro.Build.cs) - Replace deprecated PREPROCESSOR_* macros with their UE_* equivalents (MACRO_OVERLOAD -> UE_APPEND_VA_ARG_COUNT, PREPROCESSOR_TO_STRING -> UE_STRINGIZE, PREPROCESSOR_JOIN -> UE_JOIN). The 5.8 deprecation injects a __pragma that breaks #if UNREAL_VERSION(...) (C1017). - Range/Conversion.h: 5.8 reworked TArray's checked ranged-for iterator (TCheckedPointerIterator) and dropped its value_type, so range-v3 0.12.0 can no longer compute iter_value_t -> indirectly_readable fails -> every `array | view` pipe stops resolving. Restore it via range-v3's own indirectly_readable_traits customization point. - Delegates/Traits.h: TMethodPtrResolver gained a leading `bool bConst` non-type param in 5.8; pass <false, FDeclareOnly> (version-guarded). - McroWindows/WindowsError.h: `_API class` -> `class _API` (5.8 flags C4091). Co-Authored-By: Please check my work, had help from Claude
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes compilation on Unreal Engine 5.8:
Verified on a fresh UE 5.8 C++ project: dropped this branch of MCRO alongside OpenUnrealSpaceMouse into Plugins/, generated the VS project files, and built the editor target (Development Editor, Win64). Both compile clean and load in the editor, and the SpaceMouse drives the viewport camera as expected.
Note: OpenUnrealSpaceMouse's .uplugin EngineVersion needed bumping 5.7.0 → 5.8.0 to load without the "designed for build 5.7.0" prompt — a packaging detail, not part of this MCRO source change, but flagging it for anyone building the 5.8 combo.
only issue i see is in 'game mode' i cannot move forward. Can move forward in editor. Somthing related to the 'forward vector' LATERAL (on a spacemouse compact)
Noteworthy changes:
array | viewpipe stops resolving. Restore it via range-v3's own indirectly_readable_traits customization point.bool bConstnon-type param in 5.8; pass <false, FDeclareOnly> (version-guarded)._API class->class _API(5.8 flags C4091).Co-Authored-By: Please check my work, had help from Claude