ignore_exception.xml 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!DOCTYPE section PUBLIC "-//Boost//DTD BoostBook XML V1.1//EN"
  3. "http://www.boost.org/tools/boostbook/dtd/boostbook.dtd">
  4. <section id="safe_numerics.exception_policies.ignore">
  5. <title>ignore_exception</title>
  6. <section>
  7. <title>Description</title>
  8. <para>This exception policy can be used to just ignore conditions which
  9. generate incorrect arithmetic results and continue processing. Programs
  10. using this policy along with the <link
  11. linkend="safe_numerics.promotion_policies.native">native</link> promotion policy
  12. should function as if the library is not even being used.</para>
  13. </section>
  14. <section>
  15. <title>Model of</title>
  16. <para><link
  17. linkend="safe_numerics.promotion_policy">ExceptionPolicy</link></para>
  18. </section>
  19. <section>
  20. <title>Header</title>
  21. <para><code><ulink url="../../include/exception_policy.hpp"><code>#include
  22. &lt;boost/safe_numerics/exception_policy.hpp&gt;
  23. </code></ulink></code></para>
  24. </section>
  25. <section>
  26. <title>Example of use</title>
  27. <programlisting>safe&lt;int, native, ignore_exception&gt; st(4);</programlisting>
  28. </section>
  29. </section>