I'm using std::bind in my code as shown below:
std::bind(&Filter::odometryCallback, filter, std::placeholders::_1, odomTopicName, poseCallbackData,
twistCallbackData);
The Filter
class has explicit constructors defined and hence no default constructors are generated by the compiler (for this class).
Now, the above line of code throws error with message "use of deleted function" and mentioning the copy constructor of Filter
class.
My requirement:
How to get &Filter::odometryCallback
to be considered/evaluated as pointer of explicitly constructed class instance member function ?
Any solutions and detailed explanation would be helpful.
Aucun commentaire:
Enregistrer un commentaire