[CXX-2288] Please provide bsoncxx_fwd.hpp and mongocxx_fwd.hpp headers Created: 17/Jun/21  Updated: 01/Jan/24  Resolved: 01/Dec/23

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

Type: New Feature Priority: Major - P3
Reporter: Puya Daravi Assignee: Ezra Chung
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
is depended on by CXX-2745 Move interfaces into the ABI-stable n... Blocked
Epic Link: CXX ABI

 Description   

Trying to forward declare `mongocxx::instance`  I came across this SO question:
https://stackoverflow.com/questions/62083738/

As per @acm's answer, the only reliable way seems to be to add these headers.



 Comments   
Comment by Githook User [ 01/Dec/23 ]

Author:

{'name': 'Ezra Chung', 'email': '88335979+eramongodb@users.noreply.github.com', 'username': 'eramongodb'}

Message: CXX-2288 note addition of forward headers in CHANGELOG (#1065)
Branch: master
https://github.com/mongodb/mongo-cxx-driver/commit/5f2077f98140ea656983ea5881de31d73bb3f735

Comment by Githook User [ 01/Dec/23 ]

Author:

{'name': 'Ezra Chung', 'email': '88335979+eramongodb@users.noreply.github.com', 'username': 'eramongodb'}

Message: CXX-2288 Add forward headers for bsoncxx and mongocxx (#1061)

  • Add forward headers to clang-format rules
  • Add forward headers for bsoncxx and mongocxx
  • Make using namespace declaration in list.hpp VERY noticable
  • Ensure headers provide the definitive declaration for all entities (no rogue forward declarations).
Comment by Kevin Albertson [ 22/Jun/21 ]

Hello puya@motionmetrics.com, thank you for the request!

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