filtering out -inf and inf values to 0 in c++
<p>lets say you have a <code>std::complex&lt;double&gt; array[N];</code></p>

<p>how would you set all <code>-inf</code> and <code>inf</code> values to 0 in a for loop?</p>

<p><code>std::isinf</code>  won't work for me the compiler predates C++11</p>
