Hi All,
Can anybody tell me how the below statement executes.
class TestClass
{
int m_testValue;
public:
TestClass(int testVal)
{
m_testValue = testVal;
}
~TestClass() { }
void callBack(int passedInt)
{
new (static_cast<void*>(this)) TestClass(passedInt); //How this executes?
//What is the meaning for it?
}
};
Thanks,
Sendil