{"action":"closed","issue":{"url":"https://api.github.com/repos/mo-c/moses-cpp-learning/issues/74","labels_url":"https://api.github.com/repos/mo-c/moses-cpp-learning/issues/74/labels{/name}","comments_url":"https://api.github.com/repos/mo-c/moses-cpp-learning/issues/74/comments","events_url":"https://api.github.com/repos/mo-c/moses-cpp-learning/issues/74/events","html_url":"https://github.com/mo-c/moses-cpp-learning/issues/74","id":63140867,"number":74,"title":"point: parameters in implementation must be named.","user":{"login":"lcabrini","id":98929,"avatar_url":"https://avatars.githubusercontent.com/u/98929?v=3","gravatar_id":"","url":"https://api.github.com/users/lcabrini","html_url":"https://github.com/lcabrini","followers_url":"https://api.github.com/users/lcabrini/followers","following_url":"https://api.github.com/users/lcabrini/following{/other_user}","gists_url":"https://api.github.com/users/lcabrini/gists{/gist_id}","starred_url":"https://api.github.com/users/lcabrini/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lcabrini/subscriptions","organizations_url":"https://api.github.com/users/lcabrini/orgs","repos_url":"https://api.github.com/users/lcabrini/repos","events_url":"https://api.github.com/users/lcabrini/events{/privacy}","received_events_url":"https://api.github.com/users/lcabrini/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/mo-c/moses-cpp-learning/labels/bug","name":"bug","color":"fc2929"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-03-20T02:23:18Z","updated_at":"2015-03-21T01:35:19Z","closed_at":"2015-03-21T01:35:19Z","body":"In the class declareation, you have:\r\n\r\n    void set_x(double x);\r\n\r\nWhich is allowed, although the name x is not required here. Thus, this declaration would also be fine.\r\n\r\n    void set_x(double);\r\n\r\nHowever, in the implementation you *must* name all your parameters. Thus the following is *not* allowed:\r\n\r\n    void Point::set_x(double)\r\n    {\r\n       ...\r\n    }\r\n\r\nIn the implentation, you need to give a name to that double variable. So this would be fine.\r\n\r\n    void Point::set_x(double x)\r\n    {\r\n        ...\r\n    }"}}