MothCocoon / FlowGraph

Design-agnostic node system for scripting game’s flow in Unreal Engine
https://discord.gg/Xmtr6GhbmW
MIT License
1.17k stars 228 forks source link

Fix compile failure due to default C++ standard below 20 #223

Closed Bigotry0 closed 3 weeks ago

Bigotry0 commented 3 weeks ago

For some projects upgrading from older versions to UE5.2 or later, the default C++ standard used by the engine may not be C++20. This issue arises because the file ReviewComments.h contains syntax that is only supported in C++20:

bool bIsClosed : 1 = false;

This bitfield initialization will cause the module compilation to fail. Adding logic to ensure C++ standards in the module's Build.cs can solve this problem.

MothDoctor commented 3 weeks ago

Thanks for the fix, accepted! :)