ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

This should be possible, if you use member function pointers to virtual functions. See: http://www.codeproject.com/Articles/7150/Member-Function-Pointers-and-the-Fastest-Possible

Caveat: I haven't tried it myself; you probably want to play around with it a bit to make sure it'll work for your use case.

Templates may be a better choice.