I am trying to compile the following code in Visual Studio 2017:
#include int main() { std::promise&
Looks like it is a known issue in MSVC's standard library implementation. A simpler reproduction scenario:
#include struct NoDefaultCtor { NoDefaultCtor() = delete; }; int main() { std::promise p; return 0; }