{"action":"opened","issue":{"url":"https://api.github.com/repos/vrogier/ocilib/issues/47","repository_url":"https://api.github.com/repos/vrogier/ocilib","labels_url":"https://api.github.com/repos/vrogier/ocilib/issues/47/labels{/name}","comments_url":"https://api.github.com/repos/vrogier/ocilib/issues/47/comments","events_url":"https://api.github.com/repos/vrogier/ocilib/issues/47/events","html_url":"https://github.com/vrogier/ocilib/issues/47","id":158302486,"number":47,"title":"Compile time appear multiple definition of `Number& Number::operator -- () '","user":{"login":"ljx0305","id":10024018,"avatar_url":"https://avatars.githubusercontent.com/u/10024018?v=3","gravatar_id":"","url":"https://api.github.com/users/ljx0305","html_url":"https://github.com/ljx0305","followers_url":"https://api.github.com/users/ljx0305/followers","following_url":"https://api.github.com/users/ljx0305/following{/other_user}","gists_url":"https://api.github.com/users/ljx0305/gists{/gist_id}","starred_url":"https://api.github.com/users/ljx0305/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ljx0305/subscriptions","organizations_url":"https://api.github.com/users/ljx0305/orgs","repos_url":"https://api.github.com/users/ljx0305/repos","events_url":"https://api.github.com/users/ljx0305/events{/privacy}","received_events_url":"https://api.github.com/users/ljx0305/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-06-03T06:52:09Z","updated_at":"2016-06-03T06:52:09Z","closed_at":null,"body":"in ocilib_impl.hpp\r\n\r\nNumber& Number::operator ++ ()\r\n{\r\n    return *this += 1;\r\n}\r\n\r\nNumber& Number::operator -- ()\r\n{\r\n    return *this += 1;\r\n}\r\n\r\nNumber Number::operator ++ (int)\r\n{\r\n    return *this + 1;\r\n}\r\n\r\nNumber Number::operator -- (int)\r\n{\r\n    return *this - 1;\r\n}\r\n\r\nModified to\r\n\r\n**_inline_** Number& Number::operator ++ ()\r\n{\r\n    return *this += 1;\r\n}\r\n\r\n**_inline_**Number& Number::operator -- ()\r\n{\r\n    return *this += 1;\r\n}\r\n\r\n**_inline_**Number Number::operator ++ (int)\r\n{\r\n    return *this + 1;\r\n}\r\n\r\n**_inline_**Number Number::operator -- (int)\r\n{\r\n    return *this - 1;\r\n}\r\n\r\n"}}
{"actor":{"display_login":"ljx0305"}}