1 // Signals2 library 2 // test for compilation of boost/signals2/slot.hpp 3 4 // Copyright Frank Mori Hess 2008 5 // Use, modification and 6 // distribution is subject to the Boost Software License, Version 7 // 1.0. (See accompanying file LICENSE_1_0.txt or copy at 8 // http://www.boost.org/LICENSE_1_0.txt) 9 10 // For more information, see http://www.boost.org 11 12 #include <boost/test/minimal.hpp> 13 #include <boost/signals2/slot.hpp> 14 myslot()15void myslot() 16 {} 17 myslot2(int)18int myslot2(int) 19 { 20 return 0; 21 } 22 test_main(int,char * [])23int test_main(int, char*[]) 24 { 25 boost::signals2::slot<void (void)> sl0(&myslot); 26 return 0; 27 } 28