Im pretty sure this wont compile correctly, unless std::corr is in the new c++11 std?