X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=flower%2Finclude%2Frational.hh;h=49b2322ed717e464bf992afedda255f050b5f493;hb=652caefc07a16d19b00b53fa7d43db7268d91bd0;hp=ac1a6d12fc1e0ae01eccc2bb3d9d6ed65cfd83b1;hpb=c67ada694cf6de9e92bd836c8e589e658667ba35;p=lilypond.git diff --git a/flower/include/rational.hh b/flower/include/rational.hh index ac1a6d12fc..49b2322ed7 100644 --- a/flower/include/rational.hh +++ b/flower/include/rational.hh @@ -3,7 +3,7 @@ source file of the Flower Library - (c) 1997--2006 Han-Wen Nienhuys + (c) 1997--2007 Han-Wen Nienhuys */ #ifndef RATIONAL_HH @@ -11,8 +11,6 @@ #include "std-string.hh" -#include "std-string.hh" - /** Rational numbers. Included is support for + and - infinity. */ @@ -47,7 +45,8 @@ public: void negate (); int to_int () const; - operator double () const; + operator double () const { return to_double (); } + double to_double () const; Rational operator - () const; /**