On upgrading to 4.23 the following doesnt compile:
TFuture<void> ClientConnectionFinishedFuture;
...
ClientConnectionFinishedFuture = Async(EAsyncExecution::Thread, &](){
...
});
In fact the code in the Async doc doesnt compile as well:
TUniqueFunction<int()> Task = ]()
{
return 123;
};
auto Result = Async(EAsyncExecution::Thread, Task);
//Error C2280 ‘TUniqueFunction<void (void)>::TUniqueFunction(const TUniqueFunction<void (void)> &)’: attempting to reference a deleted function
However I fixed it using TFunction instead of TUniqueFunction - not sure what the sideeffects ar ethough…
Sanjit