]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/parameter/test/literate/fine-grained-name-control0.cpp
import new upstream nautilus stable release 14.2.8
[ceph.git] / ceph / src / boost / libs / parameter / test / literate / fine-grained-name-control0.cpp
1
2 #include <boost/parameter.hpp>
3
4 BOOST_PARAMETER_NAME((pass_foo, keywords) foo)
5
6 BOOST_PARAMETER_FUNCTION(
7 (int), f, keywords, (required (foo, *))
8 )
9 {
10 return foo + 1;
11 }
12
13 #include <boost/core/lightweight_test.hpp>
14
15 int main()
16 {
17 int x = f(pass_foo = 41);
18 BOOST_TEST_EQ(x, 42);
19 return boost::report_errors();
20 }
21