Uploaded image for project: 'C Driver'
  1. C Driver
  2. CDRIVER-4159

Test compiling headers with a C++ compiler

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Done
    • Icon: Unknown Unknown
    • None
    • None
    • None
    • None

    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.

      Attachments

        Activity

          People

            Unassigned Unassigned
            kevin.albertson@mongodb.com Kevin Albertson
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: