S
skscpp
Is it unsafe to use 'this' in the constructor? Is there any book out there
(Stroustrup or Meyers or Sutter) that talks about this?
// small example - not compiled code
Test::Test(int a)
{
this->m_A = a; // I have seen this before
someClass->registerMe(this); // Is this okay also?
}
Thanks.
(Stroustrup or Meyers or Sutter) that talks about this?
// small example - not compiled code
Test::Test(int a)
{
this->m_A = a; // I have seen this before
someClass->registerMe(this); // Is this okay also?
}
Thanks.