$include_dir="/home/hyper-archives/boost/include"; include("$include_dir/msg-header.inc") ?>
From: Alberto Ganesh Barbati (abarbati_at_[hidden])
Date: 2006-07-15 17:34:26
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