I was trying to compile my project in UE4 editor but i received this error: Cannot open include file: ‘initializer_list’: No such file or directory (Screen #1)
I tried to build project from Visual Studio 2019 and it worked. (Screen #2)
I don’t know what is happening or how to fix it. Is this a bug? Is it dangerous for my project?
My solution: delete VS 2022 and install VS 2022 Preview instead.
Since I am working on UE 4.26 and 5.3, I need to keep both VS 2019 and 2022. However, for unknown reasons VS 2019’s VC compiler was rerouted to 2022 (I guess it’s a UBT bug). UE 4.26 doesn’t recognize VS 2022 Preview so it won’t be rerouted.