Quantcast
Channel: openFrameworks - Latest posts
Viewing all articles
Browse latest Browse all 40524

Updating of0.84 project to of0.9: troubles with ofEvent

$
0
0

The error happens in ofEvent.h (line 277 - 285):

	template<class TObj, typename TMethod>
void add(TObj * listener, TMethod method, int priority){
	ofBaseEvent<of::priv::Function<T,Mutex>,Mutex>::add(make_function(listener,method,priority));
}

template<class TObj, typename TMethod>
void remove(TObj * listener, TMethod method, int priority){
	ofBaseEvent<of::priv::Function<T,Mutex>,Mutex>::remove(make_function(listener,method,priority));
}

ofEvent.h:279:55: No matching member function for call to 'make_function'
ofEvent.h:284:58: No matching member function for call to 'make_function'

Clicking on the lines in question in xCode shows me a lot of

Candidate function not viable: requires 2 arguments, but three were provided (line 255, 259, 267, 270)
Candidate template ignored: failed template argument deduction (248)
Candidate template ignored: could not match bool against void (230, 243)
Candidate template ignored: could not match 'ofTouchEventArgs &' against 'ofMouseEventArgs &' (235)

Viewing all articles
Browse latest Browse all 40524

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>