Replaced &vec[0] syntax by vec.data().