
7 Mar
2005
7 Mar
'05
3:39 p.m.
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