Okay. That title was wierd to phrase. Really it's more like this. I have an object that is a field of my class that I construct using an initializer list, and it's constructor has the potential of throwing an exception. I don't have any idea how I would deal with handling that exception.
It's really akin to something like:
How would you deal with new throwing an exception?Code:struct s { s() : p(new int()) { } ~s() { delete p; } int * p; }



LinkBack URL
About LinkBacks



CornedBee