#include using namespace std; template struct X { void hello() { cout << "Nicht-spezialisiertes Template" << endl; } }; template <> struct X { void hello() { cout << "vollständig spezialisiertes Template" << endl; } }; int main() { X().hello(); // "Nicht-spezialisiertes Template" X().hello(); // "vollständig spezialisiertes Template" return 0; }