|
Boost : |
From: Jeremy Siek (jsiek_at_[hidden])
Date: 2001-10-31 14:49:34
I don't think that operators.hpp can handle that situation.
There is a technique that would allow for this... the iterator_comparisons
class (in iterator_adaptors.hpp) uses this technique.
Ciao,
Jeremy
On Wed, 31 Oct 2001, Bill Seymour wrote:
bill-a> Last weekend in Redmond, Beman told me that one objection
bill-a> to the fixed-point decimal library was that I hadn't used
bill-a> operators.hpp. I said that I had looked at it once and
bill-a> my first impression was that it offered more pain than
bill-a> gain; but I promised to look at it again.
bill-a>
bill-a> OK, I'm trying to apply this to the decimal<> class;
bill-a> and so far I've written:
bill-a>
bill-a> template<int Precision = 0>
bill-a> class decimal
bill-a> : unit_steppable< decimal<Precision>
bill-a> , arithmetic2< decimal<Precision>, int
bill-a> , arithmetic2< decimal<Precision>, decimal<?>
bill-a> , arithmetic2< decimal<Precision>, rounding_proxy< decimal<?> >
bill-a> > > > >
bill-a>
bill-a> Note the two occurrances of decimal<?>. I don't understand
bill-a> how to say "decimal<some other precision>" here. What am I
bill-a> missing?
bill-a>
bill-a> Thanks,
bill-a>
bill-a> --Bill Seymour
bill-a>
bill-a> Info: http://www.boost.org Unsubscribe: <mailto:boost-unsubscribe_at_[hidden]>
bill-a>
bill-a> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
bill-a>
bill-a>
----------------------------------------------------------------------
Jeremy Siek http://php.indiana.edu/~jsiek/
Ph.D. Student, Indiana Univ. B'ton email: jsiek_at_[hidden]
C++ Booster (http://www.boost.org) office phone: (812) 855-3608
----------------------------------------------------------------------
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk