A
AnonMail2005
Can someone point me to the specific are of the standard that will
clarify this issue?
I have a class that contains at least one other member. If an
exception is throw in
the destructor, is that member properly destructed?
Sample (non-working) code:
#incude <string>
class Foo
{
public:
// constructor
Foo () {}
// destructor
~Foo ()
{
// do something here that will throw (e.g. some logging)
// is the std::string properly destructed?
}
private:
std::string m_s;
};
thanks
clarify this issue?
I have a class that contains at least one other member. If an
exception is throw in
the destructor, is that member properly destructed?
Sample (non-working) code:
#incude <string>
class Foo
{
public:
// constructor
Foo () {}
// destructor
~Foo ()
{
// do something here that will throw (e.g. some logging)
// is the std::string properly destructed?
}
private:
std::string m_s;
};
thanks