// -*- c++ -*- /* Copyright 2002, The libsigc++ Development Team * Assigned to public domain. Use as you wish without restriction. */ #include #include SIGC_USING_STD(cout) SIGC_USING_STD(endl) // assume existance of T_functor::result_type for unknown functor types: namespace sigc { SIGC_FUNCTORS_HAVE_RESULT_TYPE } struct set { // choose a type that can hold all return values typedef double result_type; double operator()(int i) {std::cout << "set(int "<