parameter-enabled-member-functions1.cpp 368 B

123456789101112131415161718192021
  1. #include <boost/parameter.hpp>
  2. BOOST_PARAMETER_NAME(arg1)
  3. BOOST_PARAMETER_NAME(arg2)
  4. using namespace boost::parameter;
  5. struct callable2
  6. {
  7. BOOST_PARAMETER_CONST_MEMBER_FUNCTION(
  8. (void), call, tag, (required (arg1,(int))(arg2,(int)))
  9. )
  10. {
  11. call_impl(arg1, arg2);
  12. }
  13. private:
  14. void call_impl(int, int); // implemented elsewhere.
  15. };