|
Boost Users : |
Subject: Re: [Boost-users] boost::bind memory leak
From: bit bit (g_rambot_at_[hidden])
Date: 2010-11-12 13:42:30
problematic example:
class A
{
public:
void func1(){throw bad_alloc();};
void func2()
{
try
{
int i;
shared_ptr<void> shutdown(static_cast<void*>(0), bind(&A::func1, this));
}
catch(...)
{};
};
};
int main()
{
A a1;
a1.func2();
}
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net