Skip to content

Instantly share code, notes, and snippets.

@VitaminaCPP
Created September 9, 2014 19:19
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 VitaminaCPP/9b2dbd57b88b64ea385c to your computer and use it in GitHub Desktop.
Save VitaminaCPP/9b2dbd57b88b64ea385c to your computer and use it in GitHub Desktop.
constexpr unsigned int diez() { return 10; }
// Correcto! diez() se calcula en tiempo de compilacion:
constexpr auto v1 = Fibonacci<diez()>::valor;
// Correcto! v1 se calcula en tiempo de compilacion:
int valores1[v1] = { 0 };
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment