[CXX-729] Look into the use of string_view .data() Created: 04/Nov/15 Updated: 05/Nov/15 Resolved: 05/Nov/15 |
|
| Status: | Closed |
| Project: | C++ Driver |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Task | Priority: | Major - P3 |
| Reporter: | Matt Cotter | Assignee: | DO NOT USE - Backlog - Platform Team |
| Resolution: | Duplicate | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||
| Epic Link: | C++11 Driver MongoDB 3.2 | ||||||||
| Description |
|
.data() is not guaranteed to be null terminated, but is used in collection.cpp to send pointers to libmongoc. Perhaps c_str() is the right way to go? For more, see comments here: |