{"action":"closed","issue":{"url":"https://api.github.com/repos/thestk/rtmidi/issues/43","labels_url":"https://api.github.com/repos/thestk/rtmidi/issues/43/labels{/name}","comments_url":"https://api.github.com/repos/thestk/rtmidi/issues/43/comments","events_url":"https://api.github.com/repos/thestk/rtmidi/issues/43/events","html_url":"https://github.com/thestk/rtmidi/issues/43","id":59678262,"number":43,"title":"Change RtMidiCallback to be an alias of std::function","user":{"login":"michallaskowski","id":3706309,"avatar_url":"https://avatars.githubusercontent.com/u/3706309?v=3","gravatar_id":"","url":"https://api.github.com/users/michallaskowski","html_url":"https://github.com/michallaskowski","followers_url":"https://api.github.com/users/michallaskowski/followers","following_url":"https://api.github.com/users/michallaskowski/following{/other_user}","gists_url":"https://api.github.com/users/michallaskowski/gists{/gist_id}","starred_url":"https://api.github.com/users/michallaskowski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/michallaskowski/subscriptions","organizations_url":"https://api.github.com/users/michallaskowski/orgs","repos_url":"https://api.github.com/users/michallaskowski/repos","events_url":"https://api.github.com/users/michallaskowski/events{/privacy}","received_events_url":"https://api.github.com/users/michallaskowski/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-03-03T17:48:06Z","updated_at":"2015-03-05T13:24:57Z","closed_at":"2015-03-05T13:24:57Z","body":"Hi, \r\nI would like to use lambdas as an RtMidiCallback. To do it for me all it took was to change RtMidiCallback typedef to:\r\n```using RtMidiCallback = std::function<void(double timeStamp, std::vector<unsigned char> *message, void *userData)>;```\r\nAlthough a compiler would need to support at least c++11 - I do not know but maybe it could be a problem for someone. Or maybe there is another way?\r\nIf you want I can create a patch or pull request, though it would be a small one.\r\nCheers,\r\nMichal"}}