
24 Aug
2007
24 Aug
'07
11:39 a.m.
Any hints? #include <boost/constrained_value/constrained.hpp> #include <boost/constrained_value/bounded_aliases.hpp> #include <iostream> int main() { using namespace std; using namespace boost::constrained_value; bounded_int<int, 0, 23>::type hour; hour = 0; hour = 23; saturating_int<int, 0, 23>::type hour2; hour2 = 24; <<< this is the line that gave an error cout << hour << '\t' << hour2 << '\n'; return 0; } [...] test/test_bound.cc:14: instantiated from here/usr/local/src/boost.hg/boost/constrained_value/bounded_error_handlers.hpp:86: error: 'is_above' was not declared in this scope