The following program:
#include <future>
#include <iostream>
void Fn() {}
int main()
{
std::future<void> Future;
Future = std::async(std::launch::async, Fn);
Future.get();
std::cin.get();
return 0;
}
compiled with:
cl Source.cpp /EHsc /O2 /MD
Compilador de optimización de C/C++ de Microsoft (R) versión 19.42.34436 para x86
(C) Microsoft Corporation. Todos los derechos reservados.
Source.cpp
Microsoft (R) Incremental Linker Version 14.42.34436.0
Copyright (C) Microsoft Corporation. All rights reserved.
/out:Source.exe
Source.obj
crashes when executed on a computer with the MSVC redistributable version 14.29.30135 installed.
Isn't this combination supposed to work?
The following program:
compiled with:
crashes when executed on a computer with the MSVC redistributable version 14.29.30135 installed.
Isn't this combination supposed to work?