oost mailing list" <[EMAIL PROTECTED]>
Sent: Wednesday, February 19, 2003 3:37 PM
Subject: Re: [boost] Encapsulate boost::bind in a template method
> Matthias Hoffrichter wrote:
> > Hi,
> >
> > I want to encapsulate boost::find in a template method in a base
> &g
eMap[uMessage] = boost::bind(Function,
static_cast(pWindow), _1);
}
cu,
Matthias
- Original Message -
From: "Sam Partington" <[EMAIL PROTECTED]>
To: "Boost mailing list" <[EMAIL PROTECTED]>
Sent: Wednesday, February 19, 2003 10:17 AM
Subject: Re: [boost] Encapsul
On Wednesday 19 February 2003 09:37 am, Peter Dimov wrote:
> You'll soon find that this is not _that_ easier to use compared to
>
> setEventHandler(bind(&CButton::OnPaint, this));
>
> and the latter is much more flexible:
>
> setEventHandler(bind(&CButton::OnMessage, this, WM_PAINT));
>
> but that'
Matthias Hoffrichter wrote:
> Hi,
>
> I want to encapsulate boost::find in a template method in a base
> class for easier use.
> Here is some code:
>
> #include
> #include
>
> class CWindow {
> public:
> CWindow() {
> SetEventHandler(&CWindow::OnCreate); // this call works
> }
> long OnCreat
ect: [boost] Encapsulate boost::bind in a template method
Hi,
I want to encapsulate boost::find in a template method in a base class for
easier use.
Here is some code:
#include
#include
class CWindow {
public:
CWindow() {
SetEventHandler(&CWindow::OnCreate); // this call works
}
Hi,
I want to encapsulate boost::find in a template
method in a base class for easier use.Here is some code:
#include #include
class CWindow {public: CWindow()
{ SetEventHandler(&CWindow::OnCreate); // this call
works } long OnCreate() { return
0; } template void SetEventHandler(l