]>
Commit | Line | Data |
---|---|---|
1 | // Boost.Signals2 library | |
2 | ||
3 | // Copyright Frank Mori Hess 2009. | |
4 | // | |
5 | // distribution is subject to the Boost Software License, Version | |
6 | // 1.0. (See accompanying file LICENSE_1_0.txt or copy at | |
7 | // http://www.boost.org/LICENSE_1_0.txt) | |
8 | ||
9 | // For more information, see http://www.boost.org | |
10 | ||
11 | #ifndef BOOST_SIGNALS2_VARIADIC_SLOT_HPP | |
12 | #define BOOST_SIGNALS2_VARIADIC_SLOT_HPP | |
13 | ||
14 | #include <boost/signals2/detail/variadic_arg_type.hpp> | |
15 | ||
16 | #define BOOST_SIGNALS2_SLOT_N_BINDING_CONSTRUCTORS \ | |
17 | template<typename A1, typename A2, typename ... BindArgs> \ | |
18 | slot(const A1 &arg1, const A2 &arg2, const BindArgs & ... args) \ | |
19 | { \ | |
20 | init_slot_function(boost::bind(arg1, arg2, args...)); \ | |
21 | } | |
22 | ||
23 | ||
24 | #include <boost/signals2/detail/slot_template.hpp> | |
25 | #endif // BOOST_SIGNALS2_VARIADIC_SLOT_HPP |