|
Boost Users : |
Subject: Re: [Boost-users] Boost::bind member function and save to function pointer
From: Raymond Burkholder (ray_at_[hidden])
Date: 2011-04-13 19:33:12
>
> I'd like to implement an event-handling scheme that supports member
> functions. For example, I would have a class that accepts a function
> pointer, stores it, and calls that function when some event occurs.
> I'd like to be able to store a pointer to a member function with
> boost::bind():
>
Rather than re-inventing the wheel, you might try boost::signal or
fastdelegates:
http://www.codeproject.com/KB/cpp/fd.aspx
http://www.codeproject.com/KB/cpp/FastDelegate.aspx
-- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean.
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