[CXX-556] overload methods that accept views to take ownership if passed a value Created: 13/Mar/15 Updated: 08/Jan/24 Resolved: 07/Dec/15 |
|
| Status: | Closed |
| Project: | C++ Driver |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Task | Priority: | Major - P3 |
| Reporter: | Adam Midvidy | 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 |
|
this conversion operator seems nice, but is very error prone. example: options::find opts; The temporary value created is converted to a view and then stored in the options struct. Then it is left dangling, which causes a crash in the subsequent call to find. |
| Comments |
| Comment by Adam Midvidy [ 06/Apr/15 ] |
|
going to punt on this for now. I need to read mnmlstc::variant, compare it to boost.variant and make an informed decision about whether we should use it. |
| Comment by Adam Midvidy [ 19/Mar/15 ] |
| Comment by Adam Midvidy [ 13/Mar/15 ] |