]> git.donarmstrong.com Git - lilypond.git/blob - flower/interval.cc
* flower/interval.cc (T_to_string): gcc4 fixes.
[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--2004 Han-Wen Nienhuys <hanwen@cs.uu.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
35 template<>
36 String
37 Interval_t<int>::T_to_string (int i)
38 {
39   return ::to_string (i);
40 }
41
42 template INTERVAL__INSTANTIATE (int);
43 template INTERVAL__INSTANTIATE (Real);
44
45