mirror of
https://github.com/geode-sdk/geode.git
synced 2024-11-14 19:15:05 -05:00
Compare commits
2 commits
da61d83c6a
...
9ae178b46b
Author | SHA1 | Date | |
---|---|---|---|
|
9ae178b46b | ||
|
1d31576694 |
1 changed files with 4 additions and 2 deletions
|
@ -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));
|
||||
}
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue