Compare commits

..

2 commits

Author SHA1 Message Date
Justin
9ae178b46b
Merge a68a631a4d into 1d31576694 2024-10-21 08:49:22 +00:00
dankmeme01
1d31576694 fix CallFuncExt incorrectly handling lvalue function references
Some checks failed
Build Binaries / Build Windows (push) Has been cancelled
Build Binaries / Build macOS (push) Has been cancelled
Build Binaries / Build Android (64-bit) (push) Has been cancelled
Build Binaries / Build Android (32-bit) (push) Has been cancelled
Build Binaries / Publish (push) Has been cancelled
2024-10-21 09:35:34 +02:00

View file

@ -1392,8 +1392,10 @@ namespace geode::cocos {
// small hack to allow template deduction
struct CallFuncExt {
template <std::invocable F>
static CallFuncExtImpl<F>* create(F&& func) {
return CallFuncExtImpl<F>::create(std::forward<F>(func));
static auto create(F&& func) {
using Fd = std::decay_t<F>;
return CallFuncExtImpl<Fd>::create(std::forward<F>(func));
}
};