|
Boost : |
From: AlisdairM (alisdair.meredith_at_[hidden])
Date: 2005-06-14 02:15:26
The interval library is currently marked 'unusable' for Borland so any
patch will not show up in regular regression testing!
There is a strange compile error that the member functions lower/upper
cannot be found in class interval. I still don't have a small test
case for the bug, but it appears to depend on the order of declaration
in the class itself. Moving these two declarations higher up the file
solves the problem:
cvs diff interval.hpp (in directory \boost\boost\numeric\interval)
Index: interval.hpp
===================================================================
RCS file: /cvsroot/boost/boost/boost/numeric/interval/interval.hpp,v
retrieving revision 1.7
diff -r1.7 interval.hpp
46a47,49
> const T& lower() const;
> const T& upper() const;
>
68,70d70
< const T& lower() const;
< const T& upper() const;
<
In particular, anywhere above the constructor:
template<class T1, class Policies1>
interval(interval<T1, Policies1> const &r);
seems to do the trick.
This assumes the library author wants to start supporting Borland again
of course ;¬)
-- AlisdairM
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk