2012-12-18から1日間の記事一覧
C++ and Beyond 2012 "Systematic Error Handling in C++"スライド「ScopeGuard11」より。マクロとラムダ式を組合せてスコープガード文を疑似的に実現している。(注意:末尾のセミコロン必須) { ... SCOPE_EXIT { /* 処理A */ }; ... { ... SCOPE_EXIT { /…
C++ and Beyond 2012 "Systematic Error Handling in C++"スライド「ScopeGuard11」より。マクロとラムダ式を組合せてスコープガード文を疑似的に実現している。(注意:末尾のセミコロン必須) { ... SCOPE_EXIT { /* 処理A */ }; ... { ... SCOPE_EXIT { /…