{"action":"created","issue":{"url":"https://api.github.com/repos/z1dev/zkanji/issues/1","repository_url":"https://api.github.com/repos/z1dev/zkanji","labels_url":"https://api.github.com/repos/z1dev/zkanji/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/z1dev/zkanji/issues/1/comments","events_url":"https://api.github.com/repos/z1dev/zkanji/issues/1/events","html_url":"https://github.com/z1dev/zkanji/issues/1","id":243549490,"number":1,"title":"Provide a build system for linux","user":{"login":"galtgendo","id":1123827,"avatar_url":"https://avatars0.githubusercontent.com/u/1123827?v=4","gravatar_id":"","url":"https://api.github.com/users/galtgendo","html_url":"https://github.com/galtgendo","followers_url":"https://api.github.com/users/galtgendo/followers","following_url":"https://api.github.com/users/galtgendo/following{/other_user}","gists_url":"https://api.github.com/users/galtgendo/gists{/gist_id}","starred_url":"https://api.github.com/users/galtgendo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/galtgendo/subscriptions","organizations_url":"https://api.github.com/users/galtgendo/orgs","repos_url":"https://api.github.com/users/galtgendo/repos","events_url":"https://api.github.com/users/galtgendo/events{/privacy}","received_events_url":"https://api.github.com/users/galtgendo/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":10,"created_at":"2017-07-17T22:43:05Z","updated_at":"2017-07-20T11:10:30Z","closed_at":null,"body":"...or that was the original intent, but some serious problems have arisen.\r\n\r\nI've decided to try with qmake first, gcc 5.4.\r\n\r\nThat means C++11 by default (and qmake explicitly adds '-std=gnu++11').\r\n\r\nWell, the start wasn't all that bad (correcting to 'QtWidgets/QStyle' in zflowlayout.h and to 'smartvector.h' in zkanjigridmodel.h), but after that I've got a flood of errors.\r\n\r\nI can't say yet if it's a c+11 problem or if gcc simply hates your templating style, but a couple of examples:\r\n\r\n```\r\n../smartvector.h:90:32: error: ‘operator+’ in ‘smartvector_iterator<T, Alloc>::self_type’ does not name a template type\r\n     friend self_type ::operator+<>(int n, const self_type &);\r\n\r\n../smartvector.h:103:46: error: expected nested-name-specifier before ‘basetype’\r\n     smartvector_move_iterator(const typename basetype &base) : base(base) {}\r\n                                              ^\r\n../smartvector.h:103:55: error: expected ‘,’ or ‘...’ before ‘&’ token\r\n     smartvector_move_iterator(const typename basetype &base) : base(base) {}\r\n                                                       ^\r\n../smartvector.h: In constructor ‘smartvector_move_iterator<T, Alloc>::smartvector_move_iterator(int)’:\r\n../smartvector.h:103:73: error: expected primary-expression before ‘)’ token\r\n     smartvector_move_iterator(const typename basetype &base) : base(base) {}\r\n\r\n./smartvector.h: In member function ‘smartvector_move_iterator<T, Alloc>::self_type smartvector_move_iterator<T, Alloc>::operator+(int) const’:\r\n../smartvector.h:110:63: error: there are no arguments to ‘_base’ that depend on a template parameter, so a declaration of ‘_base’ must be available [-fpermissive]\r\n     self_type operator+(int n) const { return self_type(_base() + n); }\r\n\r\n../smartvector.h:237:39: error: redeclaration of ‘typedef typename smartvector<T, Alloc>::base::size_type smartvector<T, Alloc>::size_type’\r\n     typedef typename base::size_type  size_type;\r\n                                       ^\r\n../smartvector.h:225:38: note: previous declaration ‘typedef typename smartvector<T, Alloc>::base::size_type smartvector<T, Alloc>::size_type’\r\n     typedef typename base::size_type size_type;\r\n\r\n../qcharstring.h: In instantiation of ‘bool operator==(const STR&, const QCharString&) [with STR = QStringRef]’:\r\n../qcharstring.h:305:79:   required from here\r\n../qcharstring.h:305:79: error: explicit instantiation of ‘bool operator==(const STR&, const QCharString&) [with STR = QStringRef]’ but no definition available [-fpermissive]\r\n emplate bool operator==<QStringRef>(const QStringRef &a, const QCharString &b);\r\n```\r\n\r\nThat's not the complete output for collectwordsform.cpp, but should give you the general idea."},"comment":{"url":"https://api.github.com/repos/z1dev/zkanji/issues/comments/316672079","html_url":"https://github.com/z1dev/zkanji/issues/1#issuecomment-316672079","issue_url":"https://api.github.com/repos/z1dev/zkanji/issues/1","id":316672079,"user":{"login":"galtgendo","id":1123827,"avatar_url":"https://avatars0.githubusercontent.com/u/1123827?v=4","gravatar_id":"","url":"https://api.github.com/users/galtgendo","html_url":"https://github.com/galtgendo","followers_url":"https://api.github.com/users/galtgendo/followers","following_url":"https://api.github.com/users/galtgendo/following{/other_user}","gists_url":"https://api.github.com/users/galtgendo/gists{/gist_id}","starred_url":"https://api.github.com/users/galtgendo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/galtgendo/subscriptions","organizations_url":"https://api.github.com/users/galtgendo/orgs","repos_url":"https://api.github.com/users/galtgendo/repos","events_url":"https://api.github.com/users/galtgendo/events{/privacy}","received_events_url":"https://api.github.com/users/galtgendo/received_events","type":"User","site_admin":false},"created_at":"2017-07-20T11:10:30Z","updated_at":"2017-07-20T11:10:30Z","body":"Those `invalid initialization` errors are also reason for\r\n```\r\nstd::swap(result, std::vector<TreeItem*>());\r\n```\r\nto\r\n```\r\nresult = std::vector<TreeItem*>();\r\n```\r\n\r\n(and the second similar one) even if that might not be quite correct."}}
{"actor":{"display_login":"galtgendo"}}