X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=lily%2Ftemplate5.cc;h=fcc788fd14f9160c93bbe621303b77555b682b1f;hb=66a5682bede438bf6663f04fec05e1c1e864e4b0;hp=4cfa4f0b70b798afd673b2c75a5d0e93b9a3deb0;hpb=c3e003dacb5689ffe384d3a2f2d5dc2afb9439bb;p=lilypond.git diff --git a/lily/template5.cc b/lily/template5.cc index 4cfa4f0b70..fcc788fd14 100644 --- a/lily/template5.cc +++ b/lily/template5.cc @@ -3,42 +3,27 @@ source file of the GNU LilyPond music typesetter - (c) 1997 Han-Wen Nienhuys + (c) 1997--2006 Han-Wen Nienhuys */ -#include -#include "proto.hh" -#include "string.hh" #include "moment.hh" -#include "real.hh" #include "interval.tcc" -template INTERVAL__INSTANTIATE(Rational); -template INTERVAL__INSTANTIATE(int); - +template<> Rational -Interval_t::infinity() +Interval_t::infinity () { Rational infty; infty.set_infinite (1); return infty; } -String -Interval_t::T_to_str (Rational a) -{ - return a.str (); -} - -int -Interval_t::infinity() +template<> +string +Interval_t::T_to_string (Rational a) { - return INT_MAX; + return a.to_string (); } -String -Interval_t::T_to_str (int i) -{ - return String (i); -} +template INTERVAL__INSTANTIATE (Rational);