{"action":"created","issue":{"url":"https://api.github.com/repos/Nagarei/DxLibEx/issues/19","labels_url":"https://api.github.com/repos/Nagarei/DxLibEx/issues/19/labels{/name}","comments_url":"https://api.github.com/repos/Nagarei/DxLibEx/issues/19/comments","events_url":"https://api.github.com/repos/Nagarei/DxLibEx/issues/19/events","html_url":"https://github.com/Nagarei/DxLibEx/issues/19","id":121644532,"number":19,"title":"finallyライクな機能の実装","user":{"login":"Nagarei","id":15170167,"avatar_url":"https://avatars.githubusercontent.com/u/15170167?v=3","gravatar_id":"","url":"https://api.github.com/users/Nagarei","html_url":"https://github.com/Nagarei","followers_url":"https://api.github.com/users/Nagarei/followers","following_url":"https://api.github.com/users/Nagarei/following{/other_user}","gists_url":"https://api.github.com/users/Nagarei/gists{/gist_id}","starred_url":"https://api.github.com/users/Nagarei/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Nagarei/subscriptions","organizations_url":"https://api.github.com/users/Nagarei/orgs","repos_url":"https://api.github.com/users/Nagarei/repos","events_url":"https://api.github.com/users/Nagarei/events{/privacy}","received_events_url":"https://api.github.com/users/Nagarei/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Nagarei/DxLibEx/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-12-11T06:06:41Z","updated_at":"2015-12-11T13:31:49Z","closed_at":null,"body":"一応 5ff7a2b から分岐\r\n\r\nhttp://cpplover.blogspot.jp/2015/11/c-p0050r0-p0059r0.html\r\nで紹介があった\r\n[[PDF] P0052R0: Generic Scope Guard and RAII Wrapper for the Standard Library](http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2015/p0052r0.pdf)\r\nのようなものを実装する。\r\n\r\n意外と作ろうとすると難しいような気がします。\r\n取り合えずpdfの英語を読まなくては...。"},"comment":{"url":"https://api.github.com/repos/Nagarei/DxLibEx/issues/comments/163936749","html_url":"https://github.com/Nagarei/DxLibEx/issues/19#issuecomment-163936749","issue_url":"https://api.github.com/repos/Nagarei/DxLibEx/issues/19","id":163936749,"user":{"login":"Nagarei","id":15170167,"avatar_url":"https://avatars.githubusercontent.com/u/15170167?v=3","gravatar_id":"","url":"https://api.github.com/users/Nagarei","html_url":"https://github.com/Nagarei","followers_url":"https://api.github.com/users/Nagarei/followers","following_url":"https://api.github.com/users/Nagarei/following{/other_user}","gists_url":"https://api.github.com/users/Nagarei/gists{/gist_id}","starred_url":"https://api.github.com/users/Nagarei/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Nagarei/subscriptions","organizations_url":"https://api.github.com/users/Nagarei/orgs","repos_url":"https://api.github.com/users/Nagarei/repos","events_url":"https://api.github.com/users/Nagarei/events{/privacy}","received_events_url":"https://api.github.com/users/Nagarei/received_events","type":"User","site_admin":false},"created_at":"2015-12-11T13:31:49Z","updated_at":"2015-12-11T13:31:49Z","body":"はじめは僕もそう思ったのですが、それだと0オーバーヘッドで実現できないのではないかと思ったのでp0052r0はいったん無視しました。\r\n0オーバーヘッドにこだわるのは...僕の癖です。\r\n僕の場合は今の実装のDrawnOn関数の`Finally_`みたいにすれば簡単に0オーバーヘッド（たぶん）で実行できるものをわざわざオーバーヘッドを負ってまで使おうとは思わないです。\r\nなので、多少機能を絞ってでも0オーバーヘッドにしたいです。\r\n\r\nここまで書いて思ったけれど、p0052r0に合わせたものを別に作れば良いのか...。しかしそうすると似たような機能を持つものが二つできてしまう...。\r\n\r\n翻訳ありがたいです。英語も読めなくはないのですが、どうにも時間と気力ばかり奪われていくんですよ...。\r\n確かに急ぎではないので、ゆっくり行きましょう。"}}