In an environment restricted to C++03,boost::signals2 was used alongside boost::function and boost::bind to implement a simple messaging system between components. It works great and I have no problems with it whatsoever.
However, in another environment where C++11 is supported fully, is boost::signals2 overkill for very simple applications?
To clarify, by simple I mean the following:
- Single threaded
- All signals have the return type
void
Performance is key in this application, so all the wonders of boost::signals2 that the application doesn't need could be doing more harm than good.
Right now, there is simply an std::vector<std::function> handling this, and switching over to something else such as boost::signals2 would be very simple to do if it was deemed suitable.