// Copyright 1999 Karl Nelson.

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

#ifdef SIGC_CXX_NAMESPACES
using namespace std;
using namespace SigC;
#endif

void print(const string &str) 
  {cout << str;}

main()
  {
   Signal1<void,const string &> printer;

   printer.connect(slot(print));

   printer("hello world\n");
  }


syntax highlighted by Code2HTML, v. 0.9.1