Skip to content

Instantly share code, notes, and snippets.

@AndrejMitrovic
Created September 18, 2019 01:23
Show Gist options
  • Save AndrejMitrovic/550d6ca06d7e0aca30a441583f24b4b7 to your computer and use it in GitHub Desktop.
Save AndrejMitrovic/550d6ca06d7e0aca30a441583f24b4b7 to your computer and use it in GitHub Desktop.
template<typename T>
int foo(int (*wrapper)(const T* value))
{
return 0;
}
template<typename T>
int bar(int (*wrapper)(const int& value))
{
return 0;
}
void instantiate()
{
foo<int>(0);
bar<int>(0);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment