[CDRIVER-4159] Test compiling headers with a C++ compiler Created: 15/Sep/21  Updated: 20/Sep/21  Resolved: 20/Sep/21

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

Type: Improvement Priority: Unknown
Reporter: Kevin Albertson Assignee: Unassigned
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
is related to CDRIVER-4158 Atomics API change breaks C++ driver 3.6 Closed

 Description   

Motivation
Ensure that libmongoc and libbson headers included in C++ projects to ensure C++ consumers will continue to compile correctly.

CDRIVER-4158 notes a regression that only applies to MSVC.

Scope
Add a task to test to compile a simple executable with a C++ compiler. Include all libbson and libmongoc headers. It should be sufficient to include "mongoc/mongoc.h".

The task should run on variants to cover major compilers. It may be sufficient to test a reasonable subset of g+, clang+, and MSVC on all variants on evergreen.



 Comments   
Comment by Esha Bhargava [ 20/Sep/21 ]

Done as part of CDRIVER-4158.

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