Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

test-def.cc File Reference

#include <iostream>
#include <sigc++/sigc++.h>

Go to the source code of this file.

Functions

void hello (int i=42)
int main (int argc, char *argv[])


Function Documentation

void hello int  i = 42  ) 
 

Definition at line 6 of file test-def.cc.

Referenced by fill_tree(), and main().

00007 {
00008     cerr << "The answer is: " << i << endl;
00009 }

int main int  argc,
char *  argv[]
 

Definition at line 11 of file test-def.cc.

References hello().

00012 {
00013     using namespace SigC;
00014 
00015     Signal0<void> sig;
00016 
00017     // this fails to compile:
00018     // sig.connect(slot(hello));
00019 
00020     // this is okay:
00021     sig.connect(bind(slot(hello),42));
00022 
00023     sig.emit();
00024 
00025     hello();
00026 
00027 
00028     return 0;
00029 } // end of main()


Generated on Mon Feb 15 11:08:13 2010 for loon by  doxygen 1.3.9.1