Open duxinyu-uestc opened 1 year ago
error is:
error: no matches converting function 'publish' to type 'void (class ros::Publisher::*)(const MapChanged&) {aka void (class ros::Publisher::*)(const struct map_service::MapChanged_<std::allocator<void> >&)}'
and list several forms of overloaded template functions , Its meaning may be that it cannot match which specific function is required
i try to mock overloaded template functions:
my code is :
i want to mock the second template function, but it doesn't work. Thanks for your help!