yarp icon indicating copy to clipboard operation
yarp copied to clipboard

Const correctness in YARP

Open drdanz opened this issue 7 years ago • 1 comments
trafficstars

Several methods in yarp classes should be const but are not. This is a ZenHub "Epic" to collect them all

drdanz avatar Mar 23 '18 09:03 drdanz

Please excuse me, I'm probably not posting in the right place. This is to note that joint-group commands in yarp::dev::IInteractionMode(Raw) lack a const in the second, int * parameter:

https://github.com/robotology/yarp/blob/fe0de91d52fcdf1e3ba46f5b8a9c0a551de46c18/src/libYARP_dev/include/yarp/dev/IInteractionMode.h#L70

https://github.com/robotology/yarp/blob/fe0de91d52fcdf1e3ba46f5b8a9c0a551de46c18/src/libYARP_dev/include/yarp/dev/IInteractionMode.h#L103

https://github.com/robotology/yarp/blob/fe0de91d52fcdf1e3ba46f5b8a9c0a551de46c18/src/libYARP_dev/include/yarp/dev/IInteractionMode.h#L150

https://github.com/robotology/yarp/blob/fe0de91d52fcdf1e3ba46f5b8a9c0a551de46c18/src/libYARP_dev/include/yarp/dev/IInteractionMode.h#L183

PeterBowman avatar Sep 28 '19 08:09 PeterBowman