bug fix: adding data() function to return pointer to data of span - #302
Conversation
|
I had this error when trying to compile the native-cuda example:
Please note that the |
That's not quite true: They are identical on the implementation level but they have different semantics (by convention), compare begin and data. The former returns an iterator, the latter a pointer to the underlying data. As a C++ happens to fulfill the corresponding iterator concept, returning that pointer is semantically valid but not quite necessary for |
chillenzer
left a comment
There was a problem hiding this comment.
Well done! Thank you!
No description provided.