Skip to content

Instantly share code, notes, and snippets.

@bathoryr
Created January 20, 2019 09:06
Show Gist options
  • Save bathoryr/659af5be0b6da9c281c0a8f7650194c3 to your computer and use it in GitHub Desktop.
Save bathoryr/659af5be0b6da9c281c0a8f7650194c3 to your computer and use it in GitHub Desktop.
Function pointer template, C++ 11
template <typename RET, typename... ARGS>
using FunctionPtr = RET(*)(ARGS...);
std::string func1(int a, int b)
{
}
int main()
{
FunctionPtr<std::string, int, int> fPtr = func1;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment