{"action":"opened","issue":{"url":"https://api.github.com/repos/Microsoft/GSL/issues/629","repository_url":"https://api.github.com/repos/Microsoft/GSL","labels_url":"https://api.github.com/repos/Microsoft/GSL/issues/629/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/GSL/issues/629/comments","events_url":"https://api.github.com/repos/Microsoft/GSL/issues/629/events","html_url":"https://github.com/Microsoft/GSL/issues/629","id":300251606,"number":629,"title":"why isn't the not_null move constructor noexcept?","user":{"login":"xaxxon","id":143986,"avatar_url":"https://avatars0.githubusercontent.com/u/143986?v=4","gravatar_id":"","url":"https://api.github.com/users/xaxxon","html_url":"https://github.com/xaxxon","followers_url":"https://api.github.com/users/xaxxon/followers","following_url":"https://api.github.com/users/xaxxon/following{/other_user}","gists_url":"https://api.github.com/users/xaxxon/gists{/gist_id}","starred_url":"https://api.github.com/users/xaxxon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xaxxon/subscriptions","organizations_url":"https://api.github.com/users/xaxxon/orgs","repos_url":"https://api.github.com/users/xaxxon/repos","events_url":"https://api.github.com/users/xaxxon/events{/privacy}","received_events_url":"https://api.github.com/users/xaxxon/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-02-26T14:08:10Z","updated_at":"2018-02-26T14:08:10Z","closed_at":null,"author_association":"NONE","body":"It looks like it's \"cheating\" by using a general-purpose templated move-anything constructor for a \"proper\" move constructor but if you're moving in an actual not_null object, then can't it know that the call will succeed and be specified as noexcept?\r\n\r\nadding:\r\n\r\n        not_null(not_null&&) = default;\r\n\r\nmakes it noexcept move constructible which is desirable for me in some code I'm working on.\r\n\r\nThank you and sorry if this is just incorrect.   "}}
{"actor":{"display_login":"xaxxon"}}