2002->2003
[lilypond.git] / lily / template5.cc
blob19e75a3874916ff1874ebbd24f4cb620f1b8d181
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.string ();
32 template INTERVAL__INSTANTIATE (Rational);