Created
September 5, 2019 17:14
-
-
Save mwoehlke-kitware/45f67bbdd0495f3845282af01964834f to your computer and use it in GitHub Desktop.
Exporting explicit template instantiations (demo)
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> | |
void foo<T>::bar() | |
{ | |
// ... | |
} |
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
// FOO_EXPORT is defined in the usual manner | |
template <typename T> struct FOO_EXPORT foo | |
{ | |
void bar(); | |
}; | |
template struct foo<int>; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment