I have used initialization lists a great deal in my C++ programs but wasn\'t aware that you could allocate memory within them.
So you can do something (as a contrive
This code could leak memory in the presence of an initializer that throws an exception.
Note that this could be made to work correctly if the members of Test were smart -- rather than raw -- pointers.
Test