几个C++问题,大家讨论一下
Q: when does the object's lifetime begin?
Q: When does it end?
Q: Outside the object's lifetime, what is the status of the object?
Q: what would it mean if the constructor threw an exception?
Q: when and how to use exception? , and how to make a choice between exception handling
and return error code?
Q:
class C : private A
{
// ...
B b_;
};
when construction of any base or member subobject fails, what happens?