Boost logo

Boost :

From: Matt Calabrese (rivorus_at_[hidden])
Date: 2006-05-23 03:05:17


Is there any reason as to why the boost smart pointers don't have overloaded
->* operators? With just a few template function overloads they could
account for any member function type given that it has a low number of
parameters (you'd need a separate template for each different number of
parameters). Right now, users have to explicitly dereference the smart
pointers and then use .* which is fairly unintuitive. Granted, using member
function pointers on smart pointers isn't horrbily common, but it's not too
out of the
ordinary. I suppose the forwarding of arguments could be an issue as
it could imply extra copies, but is that really a reason
not to support the operation at all? Forgive me if this has been brought up
before.

-- 
-Matt Calabrese

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