About catching exception good practices

后端 未结 2 1289
南旧
南旧 2021-02-05 13:08

I\'m writing a little program in C++11 and really use exceptions for one of the first time.

I\'ve got a question about how to catch the exceptions efficiently, and after

2条回答
  •  闹比i
    闹比i (楼主)
    2021-02-05 13:28

    I suppose that exception should be caught in usual manner by lvalue-reference. Here's good explanation of rvalues-references use

提交回复
热议问题