c++ 面试问题5 异常操作

What happens when a function throws an exception that was not specified by an exception specification for this function?

How do I throw polymorphically?
When I throw this object, how many times will it be copied?
But MFC seems to encourage the use of catch-by-pointer; should I do the same?
What are some ways try / catch / throw can improve software quality?
What should I throw?
What should I catch?

你可能感兴趣的:(c++ 面试问题5 异常操作)