Commit 781e2b1e authored by Dominik Thoennes's avatar Dominik Thoennes
Browse files

show usage of extern

parent 50d30f00
......@@ -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
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment