mardi 18 juillet 2017

Why does std::package_task fails on GCC

Following code is ok on Microsoft and Clang compilers but fails on GCC. It throws std::system_error with message -1. Is it know issue?

#include <future>

int main() 
{
    std::packaged_task<void()> task([](){});
    task();
}

GCC

Clang

Visual C++

Aucun commentaire:

Enregistrer un commentaire