release commit
[lilypond.git] / lily / template5.cc
blob33d9b32f18be2aa2269f45af664408becb917929
1 /*
2 template5.cc -- instantiate Intervals
4 source file of the GNU LilyPond music typesetter
6 (c) 1997--2003 Han-Wen Nienhuys <hanwen@cs.uu.nl>
7 */
9 #include <limits.h>
10 #include "string.hh"
11 #include "moment.hh"
12 #include "real.hh"
13 #include "interval.tcc"
14 #include "compare.hh"
16 Rational
17 Interval_t<Rational>::infinity ()
19 Rational infty;
20 infty.set_infinite (1);
21 return infty;
24 String
25 Interval_t<Rational>::T_to_string (Rational a)
27 return a.to_string ();
32 template INTERVAL__INSTANTIATE (Rational);