Skip to content

Instantly share code, notes, and snippets.

@SiegeLord
Last active August 29, 2015 14:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save SiegeLord/a2820027692cfcd47080 to your computer and use it in GitHub Desktop.
Save SiegeLord/a2820027692cfcd47080 to your computer and use it in GitHub Desktop.
$ ldd a.out
linux-vdso.so.1 => (0x00007fff1fa00000)
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007ff720fc8000)
/lib64/ld-linux-x86-64.so.2 (0x00007ff7213c0000)
#include <stdio.h>
//~ #include <iostream>
template<typename T>
T test(T a)
{
return a;
}
int main()
{
//~ std::cout << "foo" << std::endl;
printf("%d\n", test<int>(5));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment