{"action":"closed","issue":{"url":"https://api.github.com/repos/cython/cython/issues/1522","repository_url":"https://api.github.com/repos/cython/cython","labels_url":"https://api.github.com/repos/cython/cython/issues/1522/labels{/name}","comments_url":"https://api.github.com/repos/cython/cython/issues/1522/comments","events_url":"https://api.github.com/repos/cython/cython/issues/1522/events","html_url":"https://github.com/cython/cython/issues/1522","id":188997176,"number":1522,"title":"Extra ';' at end of operators in Pyx_FakeReference","user":{"login":"TheJJ","id":673543,"avatar_url":"https://avatars.githubusercontent.com/u/673543?v=3","gravatar_id":"","url":"https://api.github.com/users/TheJJ","html_url":"https://github.com/TheJJ","followers_url":"https://api.github.com/users/TheJJ/followers","following_url":"https://api.github.com/users/TheJJ/following{/other_user}","gists_url":"https://api.github.com/users/TheJJ/gists{/gist_id}","starred_url":"https://api.github.com/users/TheJJ/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TheJJ/subscriptions","organizations_url":"https://api.github.com/users/TheJJ/orgs","repos_url":"https://api.github.com/users/TheJJ/repos","events_url":"https://api.github.com/users/TheJJ/events{/privacy}","received_events_url":"https://api.github.com/users/TheJJ/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-11-13T21:43:45Z","updated_at":"2016-11-14T18:08:26Z","closed_at":"2016-11-14T18:08:26Z","body":"There are superfluous ';' at the end of operator `==` and `!=`.\r\n\r\n``` cpp\r\ntemplate<typename T>\r\nclass __Pyx_FakeReference {\r\n  public:\r\n    __Pyx_FakeReference() : ptr(NULL) { }\r\n    __Pyx_FakeReference(const T& ref) : ptr(const_cast<T*>(&ref)) { }\r\n    T *operator->() { return ptr; }\r\n    operator T&() { return *ptr; }\r\n    template<typename U> bool operator ==(U other) { return *ptr == other; };\r\n    template<typename U> bool operator !=(U other) { return *ptr != other; };\r\n  private:\r\n    T *ptr;\r\n};\r\n```\r\n\r\nThis triggers the `warning: extra ‘;’ [-Wpedantic]`."}}
{"actor":{"display_login":"robertwb"}}