template struct fib{ const static long int value= fib::value + fib::value; }; template <> struct fib<0>{ const static long int value= 0; }; template <> struct fib<1>{ const static long int value= 1; };