Hello, I put a collection of buttons in a deque and I trying to use the same .addlistener for each button where the .addlistener would just return the name of the button. My code for calling the listener function is,
ofParameter<ofxButton> button = board_one[index];
button.addListener(this, &ofApp::button_pressed);
and for my listener function I have,
void ofApp::button_pressed(const void * sender) {
ofxButton * button = (ofxButton*)sender;
button->getName();
}
Looking at other posts I feel like this should work, and I have no idea what I am doing wrong, but I keep getting this error,
‘ofAddListener’: none of the 5 overloads could convert all the argument types.