template function error: no operator found which takes a right hand operand of type
<p>Hey! check out the following example.. its almost a copy paste from some cpp book.
i can't understand why is doesn't compile (under windows).
it says:</p>

<pre><code>'&lt;&lt;' : no operator found which takes a right-hand operand of type 'div_t' (or there is no acceptable conversion)  
</code></pre>

<p>this is the example:</p>

<pre><code>#include &lt;iostream&gt;

template &lt;class T&gt;
T div(T a, T b) {
    T result =  a/b;
    return result;
}

int main() {    
    int a = 5;
    int b = 3;
    std::cout &lt;&lt; "INT " &lt;&lt; div(a,b) &lt;&lt; std::endl; //this line output the error

    return 0;
}
</code></pre>

<p>thanks!!</p>
