Skip to content

Commit 1cf9334

Browse files
committed
Include __cdecl in specialization of mongocxx::test_util::mock
1 parent df48766 commit 1cf9334

File tree

1 file changed

+1
-1
lines changed
  • src/mongocxx/lib/mongocxx/v_noabi/mongocxx/test_util

1 file changed

+1
-1
lines changed

src/mongocxx/lib/mongocxx/v_noabi/mongocxx/test_util/mock.hh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ template <typename T>
3737
class mock;
3838

3939
template <typename R, typename... Args>
40-
class mock<R (*)(Args...)> {
40+
class mock<R(MONGOCXX_ABI_CDECL*)(Args...)> {
4141
public:
4242
using underlying_ptr = R (*)(Args...);
4343
using callback = std::function<R(Args...)>;

0 commit comments

Comments
 (0)