Resource acquisition fails in C++

It is given that resource acquisition fails when using the Resource Acquisition Is Initialization in C++.

What happens to all resources acquired by every fully-constructed member and base subobject as a result of this?

Options
  1. They are released in reverse order of initialization.
  2. They are released in reverse order of acquisition
  3. They are destroyed
  4. None of these

Related Posts

Close Bitnami banner
Bitnami