Compliation under linux or G++ Solved!
Brought to you by:
saraht01
*****************************************************
*****************************************************
(G++) GNU PEOPLE
*****************************************************
*****************************************************
SEE THE PATCHES SECTION!
Attached to one of the messages there
is a ANSI compliant version. That compiles
without errors.
*****************************************************
*****************************************************
Logged In: YES
user_id=1226241
thanks to Jan Ciger at VRLab
See attached file: sigslot.h
This version compiles OK on g++ (GCC) 3.4.2 20041017 Fedora
Core 3 Linux
Works perfect. Thanks!
Although this code compiles, I believe there is a bug.
For all the _connectionN() (for N=0...8) the default constructor is written as follows. This does not make sense and I have a feeling it's never flagged by the compiler because the default constructor is never used (and hence never instantiated). These classes don't even have members called pobject or pmemfun.
Before (what I believe is incorrect)
_connectionN()
{
this->pobject = NULL;
this->pmemfun = NULL;
}
I believe it should be (this makes much more sense):
_connectionN()
{
m_pobject = NULL;
m_pmemfun = NULL;
}
which more succinctly can be expressed as :
_connectionN() : m_pobject(NULL), m_pmemfun(NULL) {}