c++11 std::async doesn’t work in mingw
Maybe it’s easier for me to interpret because I wrote that code, but it’s not so hard, just look at the first line of the error output: swap.cpp:22:14: error: invalid use of incomplete type ‘class std::future<std::basic_string<char> >’ That’s telling you that std::future is an incomplete type, i.e. it is declared but not defined. The next … Read more