/* Copyright 2003 - 2016, The libsigc++ Development Team * * Assigned to the public domain. Use as you wish without * restriction. */ #include #include #include void on_print(const std::string& str) { std::cout << str; } int main() { sigc::signal signal_print; signal_print.connect(sigc::ptr_fun(&on_print)); signal_print.emit("hello world\n"); return 0; }