
29 May
2010
29 May
'10
9:01 p.m.
At Sat, 29 May 2010 13:51:55 -0700, Steven Watanabe wrote:
I could, but the functor is a visitor that is provided by the user of this class, while the call of the operator is an implementation detail. so I'd rather use a compiler bug workaround for the call than complicate the visitor interface. operator(): because it's a functor.
It isn't a functor if you need explicit template arguments.
Well, let's not pick nits over what one should consider a functor, because nobody's ever defined it well for C++, and there's a good argument that C++ has totally abused a term of art from elsewhere (http://en.wikipedia.org/wiki/Functor). -- Dave Abrahams Meet me at BoostCon: http://www.boostcon.com BoostPro Computing http://www.boostpro.com