16 Apr
2009
16 Apr
'09
12:31 p.m.
2009/4/16 Igor R
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.