diff options
Diffstat (limited to 'clang/include/clang/Analysis/Analyses/IntervalSolver/Complete.hpp')
-rw-r--r-- | clang/include/clang/Analysis/Analyses/IntervalSolver/Complete.hpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/clang/include/clang/Analysis/Analyses/IntervalSolver/Complete.hpp b/clang/include/clang/Analysis/Analyses/IntervalSolver/Complete.hpp index 73c8f23..2aa657c 100644 --- a/clang/include/clang/Analysis/Analyses/IntervalSolver/Complete.hpp +++ b/clang/include/clang/Analysis/Analyses/IntervalSolver/Complete.hpp @@ -10,10 +10,11 @@ template<typename T> T infinity(); template<> -double infinity() { +inline double infinity() { return std::numeric_limits<double>::infinity(); } + template<typename T> struct Complete { Complete() @@ -139,7 +140,7 @@ std::ostream& operator<<(std::ostream& cout, const Complete<Z>& num) { } template<> -Complete<int> infinity() { +inline Complete<int> infinity() { return Complete<int>(1, true); } |