
3 Sep
2008
3 Sep
'08
1:41 p.m.
Alexander:
Peter Dimov wrote in message news:004301c90cef$94246520$6507a80a@pdimov2...
It works by design. boost::mem_fn uses get_pointer, and get_pointer for auto_ptr returns .get().
Why there is get_pointer function ? As far as I can see, the same could be done with combination of operator * and operator .* , this would work for most smart-pointers without need to have get_pointer function.
Historical reasons. This is how boost::mem_fn was implemented and documented when it was first submitted for a Boost review, and nobody suggested using op* then. std::mem_fn is specified to use op*.