{"action":"created","issue":{"url":"https://api.github.com/repos/mapbox/jni.hpp/issues/1","repository_url":"https://api.github.com/repos/mapbox/jni.hpp","labels_url":"https://api.github.com/repos/mapbox/jni.hpp/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/mapbox/jni.hpp/issues/1/comments","events_url":"https://api.github.com/repos/mapbox/jni.hpp/issues/1/events","html_url":"https://github.com/mapbox/jni.hpp/issues/1","id":178479488,"number":1,"title":"Build error","user":{"login":"jcelerier","id":2772730,"avatar_url":"https://avatars.githubusercontent.com/u/2772730?v=3","gravatar_id":"","url":"https://api.github.com/users/jcelerier","html_url":"https://github.com/jcelerier","followers_url":"https://api.github.com/users/jcelerier/followers","following_url":"https://api.github.com/users/jcelerier/following{/other_user}","gists_url":"https://api.github.com/users/jcelerier/gists{/gist_id}","starred_url":"https://api.github.com/users/jcelerier/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jcelerier/subscriptions","organizations_url":"https://api.github.com/users/jcelerier/orgs","repos_url":"https://api.github.com/users/jcelerier/repos","events_url":"https://api.github.com/users/jcelerier/events{/privacy}","received_events_url":"https://api.github.com/users/jcelerier/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-09-21T22:36:49Z","updated_at":"2016-09-21T23:05:48Z","closed_at":null,"body":"When just including jni.hpp, with g++-6, I get an error at : \r\n\r\n    template < class R, class Subject, class... Args, R (*method)(JNIEnv&, Subject, Args...) >\r\n    struct NativeMethodMaker< R (JNIEnv&, Subject, Args...), method >\r\n\r\nThe error : \r\n\r\n    ‘R(struct _JNIEnv&, Subject, Args ...)’ is not a valid type for a template non-type parameter\r\n         struct NativeMethodMaker< R (JNIEnv&, Subject, Args...), method >\r\n                                                                          ^"},"comment":{"url":"https://api.github.com/repos/mapbox/jni.hpp/issues/comments/248769187","html_url":"https://github.com/mapbox/jni.hpp/issues/1#issuecomment-248769187","issue_url":"https://api.github.com/repos/mapbox/jni.hpp/issues/1","id":248769187,"user":{"login":"jfirebaugh","id":98601,"avatar_url":"https://avatars.githubusercontent.com/u/98601?v=3","gravatar_id":"","url":"https://api.github.com/users/jfirebaugh","html_url":"https://github.com/jfirebaugh","followers_url":"https://api.github.com/users/jfirebaugh/followers","following_url":"https://api.github.com/users/jfirebaugh/following{/other_user}","gists_url":"https://api.github.com/users/jfirebaugh/gists{/gist_id}","starred_url":"https://api.github.com/users/jfirebaugh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jfirebaugh/subscriptions","organizations_url":"https://api.github.com/users/jfirebaugh/orgs","repos_url":"https://api.github.com/users/jfirebaugh/repos","events_url":"https://api.github.com/users/jfirebaugh/events{/privacy}","received_events_url":"https://api.github.com/users/jfirebaugh/received_events","type":"User","site_admin":false},"created_at":"2016-09-21T23:05:48Z","updated_at":"2016-09-21T23:05:48Z","body":"I believe this is a GCC bug. See [this SO question](http://stackoverflow.com/questions/37666268/gcc-function-wrapper-template-troubles). Would you be willing to submit a PR that uses one of the workarounds mentioned there?"}}
{"actor":{"display_login":"jfirebaugh"}}