This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
I have a simple Rational number class and have discovered weird behavior with Cygwin's g++. If you look at the very short main program in file rtest2.cpp, you will see by the output that g++ get's the wrong answer for r1 / r2 == Rational(2,3); // should be true even though it prints as 2/3! Borland and Microsoft get it right. Any ideas? All code atached. Thanks. -- Chuck Allison (The Harmonious CodeSmith) -- Senior Editor, C/C++ Users Journal -- cda@freshsources.com
Attachment:
Rational2.h
Description: Text document
Attachment:
Rational2.cpp
Description: Text document
Attachment:
rtest2.cpp
Description: Text document
-- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |