Visual Studio Code – Why the below program aborts when a std::vector<std::future<T>> is used.?
I wanted to perform hashing of a stream of input messages in multithreading, so was trying to implement std::vector<std::future<HashData>> futures; but the program aborts from abort.h when debugging in Visual Studio 2019. Code Snippet: std::vector<std::future<HashData>> futures; std::vector<std::string> messages; for (int…