#include <iostream> template<int n> struct szt{}; template<> struct szt<sizeof(int)>{typedef int type;}; //#if ? template<> struct szt<sizeof(long)>{typedef long type;}; //#endif int main(){ return 0; }
Standard input is empty
prog.cpp:6: error: redefinition of ‘struct szt<4>’ prog.cpp:4: error: previous definition of ‘struct szt<4>’
Standard output is empty