We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Visua Studio 2015, Update 3, latest Kaguya
struct func_obj { int x; int operator()( int i ) { x = i; return i; } }; int main (int argc, char*[] argv ) { kaguya::State state; // Fails Line 408, native_function.hpp // is_callable KAGUYA_STATIC_ASSERT assertion //state["f"] = kaguya::function( func_obj() ); // works fine state["f"] = kaguya::function( [](int i){ func_obj o; return o(i); } ); // also fine func_obj fo; state["f"] = kaguya::function( [&](int i){ return fo(i); } ); }
Is something wrong with is_callable trait?
The text was updated successfully, but these errors were encountered:
Can fix with:
native_function_cxx11.hpp, line 99, add specialization for non-const function:
native_function_cxx11.hpp
template <typename T, typename Ret, typename... Args> struct functor_f_signature<Ret(T::*)(Args...)> { typedef invoke_signature_type<Ret, Args...> type; };
Sorry, something went wrong.
Thanks.
cc8d686
No branches or pull requests
Visua Studio 2015, Update 3, latest Kaguya
Is something wrong with is_callable trait?
The text was updated successfully, but these errors were encountered: