Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
g++ -o test test.cpp
objdump -S test | grep 0x375f00
template<int i>
struct fac { static const int result = fac<i - 1>::result * i; };
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
You can’t perform that action at this time.