title: failed constructor and failed destructor in C++
body: <p>I have one question about failed constructor and failed destructor in C++. </p>
  
  <p>I noticed that when the constructor failed, an exception will be thrown. But there is no exception thrown in destructor. </p>
  
  <p>My question is</p>
  
  <p>1) If constructor failed, what exception will be thrown? bad_alloc? or anything else related? Under what situation, a constructor would fail? What about the successfully constructed part?</p>
  
  <p>2) Under what situation, a destructor would fail? If no exception is thrown, what would happen to the destructor? How does the compiler deal with it? What's the return value to the function it is called?</p>
  
  <p>Thanks!</p>
  
  <p>Any comments are strongly appreciated!</p>