use .data() rather than address of first element for std container pointers.