Boost C++ Libraries: Ticket #936: Category rational - negativ numerator https://svn.boost.org/trac10/ticket/936 <pre class="wiki">Hi, there are a bug in 'rational.hpp' if using negativ numerators. in some cases (num=0,num=-1) the operator&lt; works wrong and the operator /= allows negativ denominator. I wrote a little test-programm file "main_rat_comp_test.cpp" to show this. a bug fix (only for MS VC++ 6.0) is tried in file "rational2.hpp" Greetings Werner Salomon </pre> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/936 Trac 1.4.3 pmoore Thu, 21 Feb 2002 16:11:35 GMT <link>https://svn.boost.org/trac10/ticket/936#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/936#comment:1</guid> <description> <pre class="wiki">Logged In: YES user_id=113328 Your fixed code was based on a very old version of boost. In future, could you please try to reproduce agains the current version? Your test did pick up an error in the code, for operator/= however. A fix has been applied to the library. Thanks for the bug report! </pre> </description> <category>Ticket</category> </item> <item> <dc:creator>bjorn_karlsson</dc:creator> <pubDate>Wed, 18 Feb 2004 12:08:17 GMT</pubDate> <title>status changed https://svn.boost.org/trac10/ticket/936#comment:2 https://svn.boost.org/trac10/ticket/936#comment:2 <ul> <li><strong>status</strong> <span class="trac-field-old">assigned</span> → <span class="trac-field-new">closed</span> </li> </ul> <pre class="wiki">Logged In: YES user_id=536454 Already fixed a long time ago; I'm just closing the case. </pre> Ticket