[CXX-215] Windows static library fails with 'BadValue default' due to broken initializers Created: 26/Apr/14  Updated: 13/Nov/14  Resolved: 29/Apr/14

Status: Closed
Project: C++ Driver
Component/s: Implementation
Affects Version/s: legacy-0.8.0
Fix Version/s: legacy-0.9.0

Type: Bug Priority: Blocker - P1
Reporter: Andrew Morrow (Inactive) Assignee: Andrew Morrow (Inactive)
Resolution: Done Votes: 0
Labels: legacy-cxx, windows
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 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.



 Comments   
Comment by Andrew Morrow (Inactive) [ 26/Apr/14 ]

https://github.com/mongodb/mongo-cxx-driver/pull/66

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