]>
git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/signals2/example/hello_world_multi_slot.cpp
1 // Multiple slot hello world example for Boost.Signals2
2 // Copyright Douglas Gregor 2001-2004.
3 // Copyright Frank Mori Hess 2009.
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 // For more information, see http://www.boost.org
12 #include <boost/signals2/signal.hpp>
14 //[ hello_def_code_snippet
17 void operator()() const
24 //[ world_def_code_snippet
27 void operator()() const
29 std::cout
<< ", World!" << std::endl
;
36 //[ hello_world_multi_code_snippet
37 boost::signals2::signal
<void ()> sig
;