Created
March 11, 2013 21:40
-
-
Save joseph-montanez/5138025 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function<Fl_Event_Handler> fn; | |
fn = [data] (int event) -> int { | |
return on_event(event, data); | |
}; | |
Fl::add_handler(fn); | |
// error: aggregate ‘std::function<int (*)(int)> fn’ has incomplete type and cannot be defined | |
// Fl_Event_Handle siganture is "int (*)(int)" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment