Hi Sarah, I enjoyed your documentation
I'm sort of an old hat to programming but new to
linux-gnu widgits and c++. Like you I found the Trolls
had somthing going with the sig-slot concept. Also, I
completely agree with Mr Slaughter that the moc is a mess.
This may be a dummy thing (on my part) but including
the library causes errors on compliation. Here is an
example of the code and compile
code: test.cpp
#include <iostream>
#include <sigslot.h>
using namespace sigslot;
main()
{
return(0);
}
********************************************************************
compile cmd:
[root@localhost sigslot]# g++ -o test test.cpp -lpthread
In file included from test.cpp:6:
/usr/include/sigslot.h:419: error: type
`std::set<sigslot::_signal_base<mt_policy>*,
std::less<sigslot::_signal_base<mt_policy>*>,
std::allocator<sigslot::_signal_base<mt_policy>*> >' is
not derived from type `sigslot::has_slots<mt_policy>'
/usr/include/sigslot.h:419: error: expected `;' before
"const_iterator"
/usr/include/sigslot.h: In copy constructor
`sigslot::has_slots<mt_policy>::has_slots(const
sigslot::has_slots<mt_policy>&)':
/usr/include/sigslot.h:431: error: `const_iterator'
undeclared (first use this function)
/usr/include/sigslot.h:431: error: (Each undeclared
identifier is reported only once for each function it
appears in.)
/usr/include/sigslot.h:431: error: expected `;' before "it"
/usr/include/sigslot.h:432: error: expected `;' before
"itEnd"
/usr/include/sigslot.h:434: error: `it' undeclared
(first use this function)
/usr/include/sigslot.h:434: error: `itEnd' undeclared
(first use this function)
/usr/include/sigslot.h: In member function `void
sigslot::has_slots<mt_policy>::disconnect_all()':
/usr/include/sigslot.h:462: error: `const_iterator'
undeclared (first use this function)
/usr/include/sigslot.h:462: error: expected `;' before "it"
/usr/include/sigslot.h:463: error: expected `;' before
"itEnd"
/usr/include/sigslot.h:465: error: `it' undeclared
(first use this function)
/usr/include/sigslot.h:465: error: `itEnd' undeclared
(first use this function)
/usr/include/sigslot.h: In copy constructor
`sigslot::_signal_base0<mt_policy>::_signal_base0(const
sigslot::_signal_base0<mt_policy>&)':
/usr/include/sigslot.h:493: error: expected `;' before "it"
/usr/include/sigslot.h:494: error: expected `;' before
"itEnd"
/usr/include/sigslot.h:496: error: `it' undeclared
(first use this function)
/usr/include/sigslot.h:496: error: `itEnd' undeclared
(first use this function)
/usr/include/sigslot.h: In member function `void
sigslot::_signal_base0<mt_policy>::disconnect_all()':
/usr/include/sigslot.h:513: error: expected `;' before "it"
/usr/include/sigslot.h:514: error: expected `;' before
"itEnd"
/usr/include/sigslot.h:516: error: `it' undeclared
(first use this function)
/usr/include/sigslot.h:516: error: `itEnd' undeclared
(first use this function)
/usr/include/sigslot.h: In member function `void
sigslot::_signal_base0<mt_policy>::disconnect(sigslot::has_slots<mt_policy>*)':
/usr/include/sigslot.h:530: error: expected `;' before "it"
/usr/include/sigslot.h:531: error: expected `;' before
"itEnd"
/usr/include/sigslot.h:533: error: `it' undeclared
(first use this function)
/usr/include/sigslot.h:533: error: `itEnd' undeclared
(first use this function)
/usr/include/sigslot.h: In member function `void
sigslot::_signal_base0<mt_policy>::slot_disconnect(sigslot::has_slots<mt_policy>*)':
/usr/include/sigslot.h:550: error: expected `;' before "it"
/usr/include/sigslot.h:551: error: expected `;' before
"itEnd"
/usr/include/sigslot.h:553: error: `it' undeclared
(first use this function)
/usr/include/sigslot.h:553: error: `itEnd' undeclared
(first use this function)
/usr/include/sigslot.h:555: error: expected `;' before
"itNext"
/usr/include/sigslot.h:556: error: `itNext' undeclared
(first use this function)
/usr/include/sigslot.h: In member function `void
sigslot::_signal_base0<mt_policy>::slot_duplicate(const
sigslot::has_slots<mt_policy>*,
sigslot::has_slots<mt_policy>*)':
/usr/include/sigslot.h:571: error: expected `;' before "it"
/usr/include/sigslot.h:572: error: expected `;' before
"itEnd"
/usr/include/sigslot.h:574: error: `it' undeclared
(first use this function)
/usr/include/sigslot.h:574: error: `itEnd' undeclared
(first use this function)
/usr/include/sigslot.h: In copy constructor
`sigslot::_signal_base1<arg1_type,
mt_policy>::_signal_base1(const
sigslot::_signal_base1<arg1_type, mt_policy>&)':
/usr/include/sigslot.h:604: error: expected `;' before "it"
/usr/include/sigslot.h:605: error: expected `;' before
"itEnd"
/usr/include/sigslot.h:607: error: `it' undeclared
(first use this function)
/usr/include/sigslot.h:607: error: `itEnd' undeclared
(first use this function)
/usr/include/sigslot.h: In member function `void
sigslot::_signal_base1<arg1_type,
mt_policy>::slot_duplicate(const
sigslot::has_slots<mt_policy>*,
sigslot::has_slots<mt_policy>*)':
/usr/include/sigslot.h:619: error: expected `;' before "it"
/usr/include/sigslot.h:620: error: expected `;' before
"itEnd"
/usr/include/sigslot.h:622: error: `it' undeclared
(first use this function)
/usr/include/sigslot.h:622: error: `itEnd' undeclared
(first use this function)
/usr/include/sigslot.h: In member function `void
sigslot::_signal_base1<arg1_type,
mt_policy>::disconnect_all()':
/usr/include/sigslot.h:641: error: expected `;' before "it"
/usr/include/sigslot.h:642: error: expected `;' before
"itEnd"
/usr/include/sigslot.h:644: error: `it' undeclared
(first use this function)
/usr/include/sigslot.h:644: error: `itEnd' undeclared
(first use this function)
/usr/include/sigslot.h: In member function `void
sigslot::_signal_base1<arg1_type,
mt_policy>::disconnect(sigslot::has_slots<mt_policy>*)':
/usr/include/sigslot.h:658: error: expected `;' before "it"
/usr/include/sigslot.h:659: error: expected `;' before
"itEnd"
/usr/include/sigslot.h:661: error: `it' undeclared
(first use this function)
/usr/include/sigslot.h:661: error: `itEnd' undeclared
(first use this function)
/usr/include/sigslot.h: In member function `void
sigslot::_signal_base1<arg1_type,
mt_policy>::slot_disconnect(sigslot::has_slots<mt_policy>*)':
/usr/include/sigslot.h:678: error: expected `;' before "it"
/usr/include/sigslot.h:679: error: expe
................. and on and on........
What do you think?
Logged In: YES
user_id=1226241
*****************************************************
*****************************************************
(G++) GNU PEOPLE
*****************************************************
*****************************************************
SEE THE PATCHES SECTION!
Attached to one of the messages there
is a ANSI compliant version.
*****************************************************
*****************************************************