Boost logo

Boost :

From: Matthias Kaeppler (nospam_at_[hidden])
Date: 2005-03-07 10:39:21


Thorsten Ottosen wrote:
> but my question is this: given that these typedefs are added to the template,
> what is the
> benefit of having 2 classes instead of 1?

Well, I guess for the same reason that unary_traits and binary_traits
are 2 classes instead of one. :)
You never need both at the same time, so one of your operator() is
always superfluous.
Even from the standpoint of intuitivity of usage, I thought it'd be
better to separate them into two classes. But maybe that's just me.

-- 
Matthias Kaeppler

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk