Skip to content
Snippets Groups Projects
Commit 22977950 authored by Ramin Yaghoubzadeh Torky's avatar Ramin Yaghoubzadeh Torky Committed by Hendrik Buschmeier
Browse files

C++: added the handler bind macro

Also replacing the old boost bind with it in core projects.

This will make C++ applications source compatible between ipaaca3
(rsb) and ipaaca4 (mqtt, ros, ...) and more stable for the future.
parent 190b9e69
No related branches found
No related tags found
1 merge request!2Ipaaca4
...@@ -125,6 +125,8 @@ class BufferConfigurationBuilder: private BufferConfiguration//{{{ ...@@ -125,6 +125,8 @@ class BufferConfigurationBuilder: private BufferConfiguration//{{{
* *
*/ */
IPAACA_HEADER_EXPORT typedef boost::function<void (boost::shared_ptr<IUInterface>, IUEventType, bool)> IUEventHandlerFunction; IPAACA_HEADER_EXPORT typedef boost::function<void (boost::shared_ptr<IUInterface>, IUEventType, bool)> IUEventHandlerFunction;
#define IPAACA_BIND_CLASS_HANDLER(fn, inst) boost::bind(fn, inst, _1, _2, _3)
/** \brief Internal handler type used in Buffer (wraps used-specified IUEventHandlerFunction) /** \brief Internal handler type used in Buffer (wraps used-specified IUEventHandlerFunction)
*/ */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment