Created
September 18, 2019 01:23
-
-
Save AndrejMitrovic/550d6ca06d7e0aca30a441583f24b4b7 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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