{"action":"closed","issue":{"url":"https://api.github.com/repos/mathLab/deal2lkit/issues/224","labels_url":"https://api.github.com/repos/mathLab/deal2lkit/issues/224/labels{/name}","comments_url":"https://api.github.com/repos/mathLab/deal2lkit/issues/224/comments","events_url":"https://api.github.com/repos/mathLab/deal2lkit/issues/224/events","html_url":"https://github.com/mathLab/deal2lkit/issues/224","id":115982261,"number":224,"title":"Change exception for ParameterAcceptor when trying to parse to a const. ","user":{"login":"luca-heltai","id":2919756,"avatar_url":"https://avatars.githubusercontent.com/u/2919756?v=3","gravatar_id":"","url":"https://api.github.com/users/luca-heltai","html_url":"https://github.com/luca-heltai","followers_url":"https://api.github.com/users/luca-heltai/followers","following_url":"https://api.github.com/users/luca-heltai/following{/other_user}","gists_url":"https://api.github.com/users/luca-heltai/gists{/gist_id}","starred_url":"https://api.github.com/users/luca-heltai/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/luca-heltai/subscriptions","organizations_url":"https://api.github.com/users/luca-heltai/orgs","repos_url":"https://api.github.com/users/luca-heltai/repos","events_url":"https://api.github.com/users/luca-heltai/events{/privacy}","received_events_url":"https://api.github.com/users/luca-heltai/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/mathLab/deal2lkit/labels/bug","name":"bug","color":"fc2929"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-11-09T22:29:54Z","updated_at":"2015-12-03T23:55:09Z","closed_at":"2015-12-03T23:55:09Z","body":"When declaring a class as the following:\r\n\r\n~~~\r\nclass MyClass : public ParameterAcceptor {\r\n   virtual void declare_parameters(prm) {\r\n      add_parameter(prm, &var, ...);\r\n   }\r\n\r\n  const some_type var;\r\n\r\n}\r\n~~~\r\nthe default implementation of `parse_parameters` throws an exception of `ExcNotImplemented()`. \r\n\r\nThe default should first check if the variable is const, and if it is, it should throw a different exception. The above is misleading... "}}