fork download
  1. template<typename ReturnType, typename T, typename... ParameterTypes>
  2. void Proxy::AddMethod(std::string methodName,
  3. ReturnType(T::*method)(ParameterTypes...) const, T& instance)
  4. {
  5. m_dispatcher->AddMethod(std::move(methodName), method, instance);
  6. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp:2:6: error: ‘Proxy’ has not been declared
 void Proxy::AddMethod(std::string methodName,
      ^~~~~
prog.cpp:2:28: error: variable or field ‘AddMethod’ declared void
 void Proxy::AddMethod(std::string methodName,
                            ^~~~~~
prog.cpp:2:23: error: ‘string’ is not a member of ‘std’
 void Proxy::AddMethod(std::string methodName,
                       ^~~
prog.cpp:3:15: error: expected primary-expression before ‘(’ token
     ReturnType(T::*method)(ParameterTypes...) const, T& instance)
               ^
prog.cpp:3:19: error: expected unqualified-id before ‘*’ token
     ReturnType(T::*method)(ParameterTypes...) const, T& instance)
                   ^
prog.cpp:3:20: error: ‘method’ was not declared in this scope
     ReturnType(T::*method)(ParameterTypes...) const, T& instance)
                    ^~~~~~
prog.cpp:3:42: error: expected primary-expression before ‘...’ token
     ReturnType(T::*method)(ParameterTypes...) const, T& instance)
                                          ^~~
prog.cpp:3:55: error: expected primary-expression before ‘&’ token
     ReturnType(T::*method)(ParameterTypes...) const, T& instance)
                                                       ^
prog.cpp:3:57: error: ‘instance’ was not declared in this scope
     ReturnType(T::*method)(ParameterTypes...) const, T& instance)
                                                         ^~~~~~~~
stdout
Standard output is empty