|
Boost Users : |
Subject: [Boost-users] Interval: checking for equality
From: gast128 (gast128_at_[hidden])
Date: 2011-04-20 08:12:43
Hello all,
I was (mis)using the interval library for time intervals. However the equality
operator fails for a simple test:
boost::numeric::interval<int> intv1(1, 3);
boost::numeric::interval<int> intv2 = intv1;
//throws
bool b = (intv1 == intv2);
probably i don't understand the whole idea about this interval arithmetic
library then. Could somebody tell me what I do wrong?
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net