Skip to content

Instantly share code, notes, and snippets.

@xaxxon
Created April 21, 2016 03:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save xaxxon/9dca79e534ac93dd0431b162ef762b88 to your computer and use it in GitHub Desktop.
Save xaxxon/9dca79e534ac93dd0431b162ef762b88 to your computer and use it in GitHub Desktop.
struct _Invoker_functor
{ // INVOKE a function object
template<class _Callable,
class... _Types>
static auto _Call(_Callable&& _Obj, _Types&&... _Args)
-> decltype(_STD forward<_Callable>(_Obj)(
_STD forward<_Types>(_Args)...))
{ // INVOKE a function object
return (_STD forward<_Callable>(_Obj)( // <=== THIS LINE
_STD forward<_Types>(_Args)...));
}
};
2>D:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\include\type_traits(1398): error C2065: '_Args': undeclared identifier
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment