Quantcast
Channel: bugs, errors - openFrameworks
Viewing all articles
Browse latest Browse all 636

Exit event registering problem

$
0
0

@Elaye wrote:

Hello,
I'm trying to register to my ofApp exit event but the compiler gives me the following error:

error: no matching function for call to 'ofAddListener'

./../../libs/openFrameworks/events/ofEventUtils.h:75:6: note: candidate function [with ListenerClass = ofxTB] not viable: no known conversion from 'ofEvent<ofEventArgs>' to 'ofEvent<void> &' for 1st argument

I try to register to the event like this:

ofAddListener(ofEvents().exit, this, &ofxTB::exit);

Why this doesn't compile?

Posts: 2

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 636

Trending Articles