bug5968.cpp 827 B

123456789101112131415161718192021222324252627
  1. /*==============================================================================
  2. Copyright (c) 2005-2010 Joel de Guzman
  3. Copyright (c) 2010 Thomas Heller
  4. Distributed under the Boost Software License, Version 1.0. (See accompanying
  5. file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
  6. ==============================================================================*/
  7. #include <boost/phoenix.hpp>
  8. #include <boost/signals2.hpp>
  9. struct s
  10. {
  11. bool f(int, bool) { return true; }
  12. };
  13. int main()
  14. {
  15. s s_obj;
  16. boost::signals2::signal<bool (int, bool)> sig;
  17. sig.connect(
  18. boost::phoenix::bind(
  19. &s::f, &s_obj,
  20. boost::phoenix::placeholders::arg1,
  21. boost::phoenix::placeholders::arg2));
  22. }