2009/4/16 Igor R <boost.lists@gmail.com>
Great, thank you!
BTW, is it legal to overload get_pointer inside boost namespace or
it's considered a "dirty patch"?

Implementation of mem_fn makes unqualified calls to get_pointer, hence you can define get_pointer in the namespace of your smart pointer (function will be found by ADL). I think it's also OK to overload boost::get_pointer, because it's a deliberate point of extension.

Roman Perepelitsa.