    Set an error code on the Nth failure.
        </p>
<pre class="programlisting"><span class="keyword">bool</span>
<a class="link" href="fail/overload2.html" title="test::fail_count::fail (2 of 2 overloads)">fail</a><span class="special">(</span>
    <span class="identifier">error_code</span><span class="special">&amp;</span> <span class="identifier">ec</span><span class="special">);</span>
  <span class="emphasis"><em>&#187; <a class="link" href="fail/overload2.html" title="test::fail_count::fail (2 of 2