/* * thing.h * * Thing declaration. */ #ifndef THING_H #define THING_H template void thing(T t); #endif /* * thing.cpp * * Thing definition. */ #include "thing.h" template void thing(T t) { return 0; } /* * * main.cpp * */ #include "thing.h" int main() { thing(0); return 0; }