Use vector.data() instead of &vec[0]