]> git.donarmstrong.com Git - lilypond.git/blob - lily/template5.cc
release: 0.1.9
[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 Han-Wen Nienhuys <hanwen@stack.nl>
7 */
8
9 #include <limits.h>
10 #include "proto.hh"
11 #include "string.hh"
12 #include "moment.hh"
13 #include "real.hh"
14
15 #include "interval.tcc"
16
17 template INTERVAL__INSTANTIATE(Rational);
18 template INTERVAL__INSTANTIATE(int);
19
20 Rational
21 Interval_t<Rational>::infinity()
22 {
23   return Rational (INT_MAX);
24 }
25
26 int
27 Interval_t<int>::infinity()
28 {
29   return INT_MAX;
30 }