Skip to content

Commit

Permalink
Fix decltype
Browse files Browse the repository at this point in the history
  • Loading branch information
outercloudstudio committed Apr 7, 2024
1 parent 5f2af54 commit 93bf122
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class ContentLog {

template<typename... Strings>
int Log(bool doNotRepeat, LogLevel logLevel, LogArea logArea, Strings... strings) {
using function = decltype(&ContentLog::Log);
using function = int (ContentLog::*)(bool, LogLevel, LogArea, Strings...);
auto func = std::bit_cast<function>(SigScan("44 89 4C 24 ? 48 83 EC"));
return (this->*func)(doNotRepeat, logLevel, logArea, strings...);
}
Expand Down

0 comments on commit 93bf122

Please sign in to comment.