Run Code | API | Code Wall | Misc | Feedback | Login | Theme | Privacy | Patreon |
compile c++ gcc onlineError(s): source_file.cpp: In instantiation of ‘void* S::make_invoker() [with TFunc = void (S::*)(int); TFunc Func = &S::func; TArgs = {int}]’: source_file.cpp:10:51: required from here source_file.cpp:15:3: error: no type named ‘type’ in ‘struct std::enable_if<false, void>’ Invoke(TArgs&&... Args) { ^ source_file.cpp:15:3: error: no type named ‘type’ in ‘struct std::enable_if<false, void>’ source_file.cpp:25:13: error: unable to deduce ‘auto’ from ‘Invoke<void (S::*)(int), &S::func, std::result_of_t<void (S::*(S*, int))(int)>, int>’ auto fn = Invoke<TFunc, Func, std::result_of_t<TFunc(S*, TArgs...)>, TArgs...>; ^ source_file.cpp: In member function ‘void* S::make_invoker() [with TFunc = void (S::*)(int); TFunc Func = &S::func; TArgs = {int}]’: source_file.cpp:27:2: warning: control reaches end of non-void function [-Wreturn-type] } ^ |
λ
.NET NoSQL database for rapid development
|