if (!util->check_command_args(argc, argv))
return util->get_result_and_delete_instance() ? EXIT_SUCCESS : EXIT_FAILURE;
- sigc::slot<std::string, int> sl1;
+ sigc::slot<std::string(int)> sl1;
{
bar_group4 bar4;
sl1 = sigc::track_obj(Functor1(bar4), bar4);
// Allocate on the heap. valgrind can then find erroneous memory accesses.
// (There should be none, of course.)
- auto psl2 = new sigc::slot<std::string, int, std::string>;
+ auto psl2 = new sigc::slot<std::string(int, std::string)>;
bar_group4* pbar4 = new bar_group4;
book* pbook4 = new book("A Book");
*psl2 = sigc::track_obj(Functor2(*pbar4, *pbook4), *pbar4, *pbook4);
// If you want to auto-disconnect a slot with a C++11 lambda expression
// that contains references to sigc::trackable-derived objects, you must use
// sigc::track_obj().
- sigc::slot<void, std::ostringstream&> sl10;
+ sigc::slot<void(std::ostringstream&)> sl10;
{
book guest_book("karl");
// sl1 = [&guest_book](std::ostringstream& stream){ stream << guest_book << "\n"; }; // no auto-disconnect
util->check_result(result_stream, "");
// auto-disconnect
- sigc::slot<void> sl20;
+ sigc::slot<void()> sl20;
{
book guest_book("karl");
// sl2 = [&guest_book] () { egon(guest_book); }; // no auto-disconnect
// -----------------------------------------------------------------------
{
//struct bar : public sigc::trackable {} some_bar;
- sigc::signal<void> some_signal;
+ sigc::signal<void()> some_signal;
{
bar_group4 some_bar;
//some_signal.connect(sigc::group(&foo, std::ref(some_bar)));