Uploaded image for project: 'C++ Driver'
  1. C++ Driver
  2. CXX-215

Windows static library fails with 'BadValue default' due to broken initializers

    XMLWordPrintable

    Details

      Description

      In https://github.com/mongodb/mongo-cxx-driver/commit/45c3f04fd829e65aa70fca99b44f05ba5ed5ea56 I rather foolishly added a #pragma once to the initializer_functions.h header while adding license text.

      This broke the static initializers on Windows since this file is intended to be included multiple times to tie in the initializers.

      The fix is to remove the #pragma once.

        Attachments

          Activity

            People

            Assignee:
            acm Andrew Morrow
            Reporter:
            acm Andrew Morrow
            Participants:
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: