[CXX-1842] Allow values to be implicitly converted to views Created: 09/Oct/19  Updated: 01/Feb/23  Resolved: 09/Oct/20

Status: Closed
Project: C++ Driver
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Improvement Priority: Major - P3
Reporter: Kevin Albertson Assignee: Raymund Rodriguez
Resolution: Done Votes: 0
Labels: internal-woes
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
related to CXX-2118 Add array::view and bson_value::view ... Backlog
is related to CXX-1827 Reduce friction between view and valu... Backlog
Epic Link: CXX usability improvements
Quarter: FY24Q3

 Description   

As proposed:

[Make] values implicitly convert to views, and making values have a pure superset of the view API.



 Comments   
Comment by Githook User [ 09/Oct/20 ]

Author:

{'name': 'rayangler', 'email': 'rayangler@users.noreply.github.com', 'username': 'rayangler'}

Message: CXX-1842 Make values have a superset of the view API (#732)
Branch: master
https://github.com/mongodb/mongo-cxx-driver/commit/3840e4da52b2d27bd303d256ce4fa6540865c04b

Comment by Mathias Stearn [ 09/Oct/19 ]

Because methods aren't found by implicit conversion, you will need to explicitly offer the view methods on value.

Generated at Wed Feb 07 22:04:05 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.