]> git.donarmstrong.com Git - lilypond.git/blob - flower/interval.cc
Run `make grand-replace'.
[lilypond.git] / flower / interval.cc
1 /*
2   interval.cc -- instantiate Interval_t<Real>
3
4   source file of the Flower Library
5
6   (c) 1997--2008 Han-Wen Nienhuys <hanwen@xs4all.nl>
7 */
8
9 #include "interval.hh"
10
11 #include "interval.tcc"
12
13 template<>
14 Real
15 Interval_t<Real>::infinity ()
16 {
17   return HUGE_VAL;
18 }
19
20 template<>
21 string
22 Interval_t<Real>::T_to_string (Real r)
23 {
24   return ::to_string (r);
25 }
26
27 template<>
28 int
29 Interval_t<int>::infinity ()
30 {
31   return INT_MAX;
32 }
33
34 template<>
35 string
36 Interval_t<int>::T_to_string (int i)
37 {
38   return ::to_string (i);
39 }
40
41 template INTERVAL__INSTANTIATE (int);
42 template INTERVAL__INSTANTIATE (Real);