]> git.donarmstrong.com Git - lilypond.git/blobdiff - flower/interval.cc
release: 0.1.61
[lilypond.git] / flower / interval.cc
index d4ca0f40f470117ffcf12b847b734a84bffd1516..2a71fea2327574039165014c90910f5aeebbb4d6 100644 (file)
@@ -3,7 +3,7 @@
 
   source file of the Flower Library
 
-  (c) 1997 Han-Wen Nienhuys <hanwen@stack.nl>
+  (c)  1997--1998 Han-Wen Nienhuys <hanwen@stack.nl>
 */
 
 
 #include "real.hh"
 #include "interval.tcc"
 
-
-template INTERVAL__INSTANTIATE(Real);
-
-
+template INTERVAL__INSTANTIATE (Real);
 
 Real
-Interval_t<Real>::infinity() 
+Interval_t<Real>::infinity () 
 {
   return HUGE_VAL;
 }
@@ -27,3 +24,18 @@ Interval_t<Real>::T_to_str (Real r)
 {
   return String (r);
 }
+
+template INTERVAL__INSTANTIATE (int);
+
+int
+Interval_t<int>::infinity () 
+{
+  return INT_MAX;
+}
+
+String
+Interval_t<int>::T_to_str (int i)
+{
+  return String (i);
+}
+