Skip to content

Commit

Permalink
fix: do not use std::invoke for mocks
Browse files Browse the repository at this point in the history
  • Loading branch information
DNKpp committed Oct 7, 2024
1 parent 4842628 commit 58614f8
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions include/mimic++/LifetimeWatcher.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@

#include "mimic++/Mock.hpp"

#include <functional>
#include <stdexcept>
#include <utility>

Expand All @@ -25,7 +24,7 @@ namespace mimicpp
m_DestructionMock,
nullptr))
{
std::invoke(*destruction);
(*destruction)();
}
}

Expand Down

0 comments on commit 58614f8

Please sign in to comment.