Hi Team,
We are looking for use C++20 corutines and std::stop_token in our game.
https://en.cppreference.com/w/cpp/thread/stop\_token.html
Is there any compatibility issue with Unreal 5.7.1?
We are looking for the next platforms:
- Windows
- Linux
- MacOS
- Android
- iOS
- PS5
- XBox
Best Regards,
Xavi
[Attachment Removed]
Hi,
The UE 5.7.1 is C++20 by default, so the coroutines should work, providing the platform compiler and the std lib supports it, but we don’t have any usage in the engine, so it’s unknown if we have ‘compatibility issues’. I would strongly suggest testing few use cases. Create a small project from the template, add some testing code and compile/run it on all platforms of interests. On my side, I was curious, so I copied an example from https://en.cppreference.com/w/cpp/language/coroutines.html, put it in Lyra and I compiled the game development target from Win64, XSX and PS5 successfully, though for PS5, I had to tweak the build configuration to get it compiling. I didn’t run to check the runtime behavior on any of those platforms though. If you need help for a given platform, please open a ticket in the right community.
Regards,
Patrick
[Attachment Removed]