From: Thomas Beckmann (beckmann.bremen_at_[hidden])
Date: 2004-08-07 08:25:17
I want to use the arithmetic operators from boost/operators.hpp but found
If one takes for example boost::rational which uses boost::addable (and
others), it is possible to write the following:
boost::rational<int> x, y, z;
x + y = z;
This is not possible for integral types.
Is this intended, considered minor or just overseen? Wouldn't it be better
for the arithmetic operators to return const T instead of T?
Thank you in advance,
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk