
15 Jul
2006
15 Jul
'06
9:34 p.m.
Christopher Eltschka ha scritto:
Doing some brainstorming, I get the following candidate list for useful automatic operators:
* comparison operators from operator< and operator== * operator @ from operator @= * posfix operator++/-- from prefix one * unary operator+ (returning just the object) * maybe also binary - from + and unary -?
Any other good candidates?
That's good, so good that we already have a header in Boost that does precisely all that and more. It's <boost/operators.hpp>, documented at <http://www.boost.org/libs/utility/operators.htm>. Ganesh