[CXX-1017] bsoncxx::oid oid(const string::view_or_value &str) mismatching git repo Created: 05/Sep/16  Updated: 07/Sep/16  Resolved: 07/Sep/16

Status: Closed
Project: C++ Driver
Component/s: API, BSON
Affects Version/s: 3.0.0, 3.0.1
Fix Version/s: None

Type: Bug Priority: Minor - P4
Reporter: Joe Zhong Assignee: David Golden
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: PNG File oid constructor mismatch.png    

 Description   

When I am trying to access this constructor, my compiler says undefined reference to this constructor.

I checked the source code in both GIT and my local repo, it is string_view for this constructor. However, after installing the cxx driver (both 3.0.0 and 3.0.1), the file /usr/local/include/bsoncxx/v_noabi/bsoncxx/oid.hpp does not have "oid::oid(const bsoncxx::stdx::string_view& str)" but it has "oid (const string::view_or_value &str)".

"oid::oid(const char* bytes, std::size_t len)" is working for me and I can use it as a work around.



 Comments   
Comment by David Golden [ 07/Sep/16 ]

Yes, that header changed in the repo in July.

The 3.x branch is not yet API or ABI stable. I'll open a separate ticket to improve our documentation about that.

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