[CXX-522] Tag free functions with calling convention macro Created: 10/Feb/15  Updated: 28/Jan/16  Resolved: 20/Jan/16

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

Type: Improvement Priority: Major - P3
Reporter: Andrew Morrow (Inactive) Assignee: Andrew Morrow (Inactive)
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Epic Link: C++11 Driver MongoDB 3.2

 Description   

On windows, free functions may have many different calling conventions, based on compiler switches. We should macro in a hard convention that our free functions are cdecl, much like the legacy driver does.



 Comments   
Comment by Githook User [ 20/Jan/16 ]

Author:

{u'username': u'acmorrow', u'name': u'Andrew Morrow', u'email': u'acm@mongodb.com'}

Message: CXX-522 Add calling convention tags where needed

On Windows, non-inline non-member functions of non-template classes
need to have a calling convention explicitly specified, so that if the
consumer of the library isn't using cdecl as the default calling
convention, they can still link with the library.

Also a few drive-by fixes:

Comment by Andrew Morrow (Inactive) [ 17/Jan/16 ]

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

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