{"action":"closed","issue":{"url":"https://api.github.com/repos/mattkretz/wg21-papers/issues/11","repository_url":"https://api.github.com/repos/mattkretz/wg21-papers","labels_url":"https://api.github.com/repos/mattkretz/wg21-papers/issues/11/labels{/name}","comments_url":"https://api.github.com/repos/mattkretz/wg21-papers/issues/11/comments","events_url":"https://api.github.com/repos/mattkretz/wg21-papers/issues/11/events","html_url":"https://github.com/mattkretz/wg21-papers/issues/11","id":205370250,"number":11,"title":"Improve reference_type specification","user":{"login":"mattkretz","id":3306474,"avatar_url":"https://avatars.githubusercontent.com/u/3306474?v=3","gravatar_id":"","url":"https://api.github.com/users/mattkretz","html_url":"https://github.com/mattkretz","followers_url":"https://api.github.com/users/mattkretz/followers","following_url":"https://api.github.com/users/mattkretz/following{/other_user}","gists_url":"https://api.github.com/users/mattkretz/gists{/gist_id}","starred_url":"https://api.github.com/users/mattkretz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mattkretz/subscriptions","organizations_url":"https://api.github.com/users/mattkretz/orgs","repos_url":"https://api.github.com/users/mattkretz/repos","events_url":"https://api.github.com/users/mattkretz/events{/privacy}","received_events_url":"https://api.github.com/users/mattkretz/received_events","type":"User","site_admin":false},"labels":[{"id":532166248,"url":"https://api.github.com/repos/mattkretz/wg21-papers/labels/P0214","name":"P0214","color":"0052cc","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2017-02-04T19:14:22Z","updated_at":"2017-02-21T15:18:04Z","closed_at":"2017-02-21T15:18:04Z","body":"@jensmaurer:\r\n> (21) I couldn't find a specification for the semantics of reference_type (used for vector elements in operator[]).\r\n\r\nThere is wording in [datapar.subscr]:\r\n> `reference operator[](size_type i);`\r\n> Returns: A temporary object with the following properties:\r\n> • Remarks: The object is neither DefaultConstructible, CopyConstructible, MoveConstructible, Copy-\r\nAssignable, nor MoveAssignable.\r\n> • Remarks: Assignment, compound assignment, increment, and decrement operators only participate\r\nin overload resolution if called in rvalue context and the corresponding operator of type value_-\r\ntype is usable.\r\n> • Effects: The assignment, compound assignment, increment, and decrement operators execute the\r\nindicated operation on the i-th element in the datapar object.\r\n> • Effects: Conversion to value_type returns a copy of the i-th element.\r\n\r\nShould I move this to a different place? Should I rather spell out the type? BTW, this spells out the semantics of subscripts on Clang vector builtins."}}
{"actor":{"display_login":"mattkretz"}}