Create a gist now

Instantly share code, notes, and snippets.

g++ -o test test.cpp
objdump -S test | grep 0x375f00
template<int i>
struct fac { static const int result = fac<i - 1>::result * i; };
template<>
struct fac<0> { static const int result = 1; };
int main() {
return fac<10>::result;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment