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