mirror of
https://github.com/geode-sdk/geode.git
synced 2024-11-14 19:15:05 -05:00
Compare commits
1 commit
9ae178b46b
...
da61d83c6a
Author | SHA1 | Date | |
---|---|---|---|
|
da61d83c6a |
1 changed files with 2 additions and 4 deletions
|
@ -1392,10 +1392,8 @@ namespace geode::cocos {
|
|||
// small hack to allow template deduction
|
||||
struct CallFuncExt {
|
||||
template <std::invocable F>
|
||||
static auto create(F&& func) {
|
||||
using Fd = std::decay_t<F>;
|
||||
|
||||
return CallFuncExtImpl<Fd>::create(std::forward<F>(func));
|
||||
static CallFuncExtImpl<F>* create(F&& func) {
|
||||
return CallFuncExtImpl<F>::create(std::forward<F>(func));
|
||||
}
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue