Skip to content

Commit 47b4f77

Browse files
committed
CXX-890 specify calling convention for callback
1 parent a9f6853 commit 47b4f77

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/mongocxx/pool.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ class MONGOCXX_API pool {
6969
/// @note The lifetime of any entry object must be a subset of the pool object
7070
/// from which it was acquired.
7171
///
72-
using entry = std::unique_ptr<client, std::function<void(client*)>>;
72+
using entry = std::unique_ptr<client, std::function<void MONGOCXX_CALL (client*)>>;
7373

7474
///
7575
/// Acquires a client from the pool. The calling thread will block until a connection is

0 commit comments

Comments
 (0)