Boost logo

Boost :

From: Ed Brey (brey_at_[hidden])
Date: 1999-11-16 10:22:33

Beman Dawes wrote:
> Dave Abrahams' boost/operators.hpp with a bit of documentation and a
> test/demonstration program is now available on the web site.

What a convenient tool this library will be!

For the multipliable specialization, it wasn't initially obvious to me
why it was there. A comment like the following would make the intent
more clear:

// The above definition of multipliable is ambiguous if T and U are
the same type.
// This specialization provides a single (and therefore unambiguous)
operator for that case.

(Hopefully, that is the right explanation.)

For the general definition of multipliable, what is the reason for the
default argument for U?

These same issues apply to all the commutitive operators, although
it's only necessary to document one.

For the non-commutitive operators, such as subtractable, what is the
reason for the:
(1) default argument for U
(2) specialization

Boost list run by bdawes at, gregod at, cpdaniel at, john at