]> git.donarmstrong.com Git - lilypond.git/blob - lily/template5.cc
Merge with master
[lilypond.git] / lily / template5.cc
1 /*
2   template5.cc -- instantiate Intervals
3
4   source file of the GNU LilyPond music typesetter
5
6   (c) 1997--2007 Han-Wen Nienhuys <hanwen@xs4all.nl>
7 */
8
9 #include "moment.hh"
10
11 #include "interval.tcc"
12
13 template<>
14 Rational
15 Interval_t<Rational>::infinity ()
16 {
17   Rational infty;
18   infty.set_infinite (1);
19   return infty;
20 }
21
22 template<>
23 string
24 Interval_t<Rational>::T_to_string (Rational a)
25 {
26   return a.to_string ();
27 }
28
29 template INTERVAL__INSTANTIATE (Rational);