Boost logo

Boost Users :

Subject: Re: [Boost-users] [boost-users][bind, lambda, ...] binding unused actual parameter
From: Roman Perepelitsa (roman.perepelitsa_at_[hidden])
Date: 2009-04-16 08:31:16


2009/4/16 Igor R <boost.lists_at_[hidden]>

> 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.



Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net