Re: [boost] Encapsulate boost::bind in a template method

2003-02-23 Thread Matthias Hoffrichter
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

Re: [boost] Encapsulate boost::bind in a template method

2003-02-23 Thread Matthias Hoffrichter
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

Re: [boost] Encapsulate boost::bind in a template method

2003-02-19 Thread Douglas Gregor
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'

Re: [boost] Encapsulate boost::bind in a template method

2003-02-19 Thread Peter Dimov
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

Re: [boost] Encapsulate boost::bind in a template method

2003-02-19 Thread Sam Partington
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 }

[boost] Encapsulate boost::bind in a template method

2003-02-18 Thread Matthias Hoffrichter
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