• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 
2 #include <boost/parameter.hpp>
3 #include <iostream>
4 
5 using namespace boost::parameter;
6 
7 BOOST_PARAMETER_NAME(arg1)
8 BOOST_PARAMETER_NAME(arg2)
9 
10 struct callable2
11 {
12     BOOST_PARAMETER_CONST_MEMBER_FUNCTION(
13         (void), call, tag, (required (arg1,(int))(arg2,(int)))
14     )
15     {
16         std::cout << arg1 << ", " << arg2 << std::endl;
17     }
18 };
19 
20 #include <boost/core/lightweight_test.hpp>
21 
main()22 int main()
23 {
24     callable2 c2;
25     callable2 const& c2_const = c2;
26     c2_const.call(1, 2);
27     return boost::report_errors();
28 }
29 
30