Skip to content

Instantly share code, notes, and snippets.

@danieldk
Created November 23, 2011 08:49
Show Gist options
  • Save danieldk/1388217 to your computer and use it in GitHub Desktop.
Save danieldk/1388217 to your computer and use it in GitHub Desktop.
template <int N>
struct Infinite
{
enum { value = Infinite<N - 1>::value };
};
int main(int argc, char *argv[])
{
Infinite<0>::value;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment