Skip to content

Instantly share code, notes, and snippets.

@mwoehlke-kitware
Created September 5, 2019 17:14
Show Gist options
  • Save mwoehlke-kitware/45f67bbdd0495f3845282af01964834f to your computer and use it in GitHub Desktop.
Save mwoehlke-kitware/45f67bbdd0495f3845282af01964834f to your computer and use it in GitHub Desktop.
Exporting explicit template instantiations (demo)
template <typename T>
void foo<T>::bar()
{
// ...
}
// 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