c++ recursive function with calling a class using a templatefunction
<p>I would like to have a function, that counts a value down to zero. in addition, i would like to call some code which class is passed as a template parameter.
but this code doesn't work. please can someone help me?
thanks a lot.</p>

<p>The error message is:</p>

<blockquote>
  <p>"function template partial specialization 'foo&lt;0, T>' is not allowed"</p>
</blockquote>

<pre><code>class Hello_World
{
    public:
        void hello(size_t number){
            cout &lt;&lt; "hello " &lt;&lt; number &lt;&lt; endl;
        }
};


template&lt;size_t SIZE, class T&gt;
void foo()
{
    T t;
    t.hello(SIZE);
    foo&lt;SIZE-1, Hello_World&gt;();
}

template&lt;class T&gt;
void foo&lt;0,T&gt;()
{
    cout &lt;&lt; "end." &lt;&lt; endl;
}

int main()
{
    foo&lt;4,Hello_World&gt;();
}
</code></pre>