#include #include template struct A { static const auto value = A::value + n; }; template<> struct A<1> { static const auto value = 1; }; int main() { printf("c=%c\n", A<5>::value); }