>>522
template <int N>int foo(void){ return foo<N-1>() * N; }
template <>int foo<0>(void){ return 1; }

こういうやつだったら通る > Sun One Studio 8