source file of the Flower Library
- (c) 1997 Han-Wen Nienhuys <hanwen@stack.nl>
+ (c) 1997--2005 Han-Wen Nienhuys <hanwen@cs.uu.nl>
*/
#include "interval.hh"
-#include "real.hh"
-#include "interval.tcc"
-Interval__instantiate(Real);
+#include "interval.tcc"
+template<>
Real
-Interval_t<Real>::infinity()
+Interval_t<Real>::infinity ()
+{
+ return HUGE_VAL;
+}
+
+template<>
+String
+Interval_t<Real>::T_to_string (Real r)
+{
+ return ::to_string (r);
+}
+
+template<>
+int
+Interval_t<int>::infinity ()
{
- return HUGE_VAL;
+ return INT_MAX;
}
+
+
+template<>
+String
+Interval_t<int>::T_to_string (int i)
+{
+ return ::to_string (i);
+}
+
+template INTERVAL__INSTANTIATE (int);
+template INTERVAL__INSTANTIATE (Real);
+
+