I am passing an array of floats by reference, this works fine when not threaded but I am given the error that float*&field does not match std::reference_wrapper<float*>.
Anyways. Here's the code.
diffuse(int b, float*& field, float*& pField, float diffFactor, float dt, int iteration)
std::thread diffuseThread(diffuse, 1, std::ref(u), std::ref(prevU), visc, dt, iteration);