lilypond-1.3.145
[lilypond.git] / lily / template5.cc
blob15ed4d4c66c14fa38ad40712a6226562017cab30
1 /*
2 template5.cc -- instantiate Intervals
4 source file of the GNU LilyPond music typesetter
6 (c) 1997--2001 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_str (Rational a)
27 return a.str ();
32 template INTERVAL__INSTANTIATE (Rational);