AntelopeIO/eos-vm

template auto parameter should not pass type

huangminghuang opened this issue · 1 comments

In function_traits.hpp:105, the template function is_callable_v is declared to accept an auto parameter; however, the calling side is passed a type parameter decltype(fn) which causes a compiler error on Apple clang version 14. The code should be changed to if constexpr (is_callable(fn)) instead.