[CXX-1259] Move mongocxx::libbson code somewhere where bsoncxx can access it Created: 18/Mar/17  Updated: 30/Jun/23

Status: Backlog
Project: C++ Driver
Component/s: BSON, Build, Implementation
Affects Version/s: None
Fix Version/s: None

Type: Task Priority: Major - P3
Reporter: J Rassi Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Epic Link: CXX usability improvements

 Description   

It would be nice to have the functionality currently available in the mongocxx::libbson namespace (such as scoped_bson_t) available to code in the bsoncxx/ directory. Currently, bsoncxx has to use entirely separate functionality to manage libbson structures.



 Comments   
Comment by J Rassi [ 18/Mar/17 ]

Two possible ways to achieve this:

  • Create a new library in src/utilcxx/, and ensure that mongocxx and bsoncxx are able to see symbols exported from this library, but that utilcxx symbols are not exported in the builds of the mongocxx and bsoncxx library.
  • Put all common functionality into a header-only library in src/utilcxx/private/.
Generated at Wed Feb 07 22:01:58 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.