Boost C++ Libraries: Ticket #998: prg_exec_fail2 fail on ppc https://svn.boost.org/trac10/ticket/998 <p> prg_exec_2 fails on darwin/ppc... never heard of this before but the ppc doesn't throw a floating point exception on the divide-by-zero. Patch: </p> <p> int cpp_main( int, char *[] ) <em> note the name { #if defined(<span class="underline">APPLE</span>) &amp;&amp; defined(<span class="underline">ppc</span>) </em></p> <blockquote> <p> printf("The ppc doesn't throw on divice-by-zero. No check.\n"); return 1; </p> </blockquote> <p> #else </p> <blockquote> <p> int div = 0; return 10 / div; </p> </blockquote> <p> #endif } </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/998 Trac 1.4.3 Dave Abrahams Tue, 03 Jul 2007 15:28:01 GMT owner set https://svn.boost.org/trac10/ticket/998#comment:1 https://svn.boost.org/trac10/ticket/998#comment:1 <ul> <li><strong>owner</strong> set to <span class="trac-author">Gennadiy Rozental</span> </li> </ul> Ticket Gennadiy Rozental Mon, 07 Jul 2008 06:06:07 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/998#comment:2 https://svn.boost.org/trac10/ticket/998#comment:2 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">fixed</span> </li> </ul> <p> applied </p> Ticket