Use v.data() instead of &v[0].