fork download
  1. #include <cstdint>
  2. template< typename T >
  3. void func( T param );
  4.  
  5. template<>
  6. void func<uint64_t>( uint64_t param )
  7. {
  8. }
  9.  
  10. int main()
  11. {
  12. int x = 0;
  13. func(x);
  14. func(uint64_t(x));
  15. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
/home/smwYk0/ccfLgrm2.o: In function `main':
prog.cpp:(.text+0x21): undefined reference to `void func<int>(int)'
collect2: ld returned 1 exit status
stdout
Standard output is empty