delete this;
Foo::Foo(const Foo& other) /* no explicit initialization */ {
*this = other; // calls: Foo& Foo::operator=(const Foo&)
}
It may work but remember:
for(int i=0,i1=1;i!=INT_MAX;i=i1,++i1)cout<<"i="<<i<<endl;
is uglier than
for (int i = 0, i1 = 1; i != INT_MAX; i = i1, ++i1)
{
cout << "i=" << i << endl;
}
Back to my Software Page.
This page received
hits.