diff options
author | Carlo Zancanaro <carlo@pc-4w14-0.cs.usyd.edu.au> | 2012-11-09 16:39:12 +1100 |
---|---|---|
committer | Carlo Zancanaro <carlo@pc-4w14-0.cs.usyd.edu.au> | 2012-11-09 16:39:12 +1100 |
commit | 9710d8c7a3307fd9477fb426ea1bab7804c6ef37 (patch) | |
tree | b6e1462e3d3b0ed414edafc2242e01822ceb22cd /impl/Complete.hpp | |
parent | b19bd8d8a41664328f33c9b459b2b0100f0b303f (diff) |
A bunch of changes to make it build nicer
In particular:
- fix up the MCF sovler to get rid of all the warnings/errors
- make the build with Wall and Werror and whatnot again
Diffstat (limited to 'impl/Complete.hpp')
-rw-r--r-- | impl/Complete.hpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/impl/Complete.hpp b/impl/Complete.hpp index 664d71f..73c8f23 100644 --- a/impl/Complete.hpp +++ b/impl/Complete.hpp @@ -4,9 +4,15 @@ #include <cassert> #include <ostream> #include <istream> +#include <limits> template<typename T> -T infinity() { } +T infinity(); + +template<> +double infinity() { + return std::numeric_limits<double>::infinity(); +} template<typename T> struct Complete { |