Code reuse in exception handling

后端 未结 6 1808
无人共我
无人共我 2020-12-08 08:26

I\'m developing a C api for some functionality written in C++ and I want to make sure that no exceptions are propagated out of any of the exported C functions.

The s

6条回答
  •  星月不相逢
    2020-12-08 09:05

    There already is a good answer. But just FYI, its called 'exception-dispatcher' idiom, see C++ FAQ.

提交回复
热议问题