// -*- 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) struct foo : public sigc::functor_base { // choose a type that can hold all return values typedef int result_type; int operator()() {std::cout << "foo()"<(foo())(1,2) << std::endl; std::cout << sigc::hide<1>(foo())(1,2) << std::endl; std::cout << sigc::hide<-1>(foo())(1) << std::endl; std::cout << sigc::hide(foo())(1) << std::endl; sigc::hide(foo_void())(1); // void test }