Boost logo

Boost :

From: Neal Becker (ndbecker2_at_[hidden])
Date: 2007-08-24 07:39:02


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


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk