J
JustSomeGuy
the macro __FUNCTION__
returns the name of the constructor rather than the name of the destructor
in when used in the destructor.
test::test()
{
cerr << __FUNCTION__ << endl; // should output test
}
test::~test()
{
cerr << __FUNCTION__ << endl; // should output ~test?, but outputs test.
}
I'm using g++ 3.3 on MAC OS X 10.3
gcc version 3.3 20030304 (Apple Computer, Inc. build 1495)
returns the name of the constructor rather than the name of the destructor
in when used in the destructor.
test::test()
{
cerr << __FUNCTION__ << endl; // should output test
}
test::~test()
{
cerr << __FUNCTION__ << endl; // should output ~test?, but outputs test.
}
I'm using g++ 3.3 on MAC OS X 10.3
gcc version 3.3 20030304 (Apple Computer, Inc. build 1495)