Commit bb8cb7de authored by amitjans's avatar amitjans
Browse files

Change cast

parent b0afaa65
......@@ -17,15 +17,15 @@
#include <iostream>
// Factorial template
template<int unsigned N>
template<int unsigned long long N>
struct Factorial{
enum { value =(int unsigned long long)N * Factorial<N-1>::value};
enum { value =N * Factorial<N-1>::value};
};
// Factorial end
template<>
struct Factorial<0>{
enum { value = (int unsigned long long)1 };
enum { value = 1 };
};
// Binomial template
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment