variadic_slot.hpp 772 B

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