Is there a favored idiom for mimicing Java's try/finally in C++?

前端 未结 15 1049
无人及你
无人及你 2021-02-05 19:16

Been doing Java for number of years so haven\'t been tracking C++. Has finally clause been added to C++ exception handling in the language definition?<

15条回答
  •  忘掉有多难
    2021-02-05 19:59

    Not completetely offtopic.

    Boiler Plating DB Resource Cleanup in Java

    sarcasm mode: Isn't the Java idiom wonderful?

提交回复
热议问题