Skip to content
Snippets Groups Projects
Commit 781e2b1e authored by Dominik Thoennes's avatar Dominik Thoennes
Browse files

show usage of extern

parent 50d30f00
No related merge requests found
......@@ -6,12 +6,7 @@ void Hund<FOO>::bar(){
bellen<FOO>();
}
template< class FOO>
void bellen(){
std::cout << "wuff" << std::endl;
}
template class Hund<double>;
//template void bellen<double>();
template void bellen<double>();
#pragma once
#include <iostream>
template< class FOO>
class Hund {
......@@ -6,7 +7,9 @@ class Hund {
void bar();
};
template <class FOO>
void bellen();
template< class FOO>
void bellen(){
std::cout << "wuff" << std::endl;
}
//extern template void bellen<double>();
\ No newline at end of file
extern template void bellen<double>();
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment