class ConstructTest
{
public:
ConstructTest()
{
//do some initialize data
_data = 100;
}
ConstructTest(const char * szData)
{
new(this) ConstructTest();
//do other things.
}
private:
int _data;
};
int main()
{
ConstructTest test("Hello");
}