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