Be careful when using const reference with std::thread / std::async in C++. Otherwise you may be in soup if you don't know this ! :)
From the basics of C and C++. we all know that when we use address-of operator to the variable, then it is an alias of the original variable it points to, and shares the same address.
Example:
#include <iostream>
void foo(const int& b)
{
std::c...
bhavithc.hashnode.dev5 min read