]>
git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/parameter/test/compose.cpp
1 //~ Copyright Rene Rivera 2006.
2 //~ Use, modification and distribution is subject to the Boost Software License,
3 //~ Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
4 //~ http://www.boost.org/LICENSE_1_0.txt)
6 #include <boost/parameter.hpp>
10 BOOST_PARAMETER_KEYWORD(Tag
,a0
)
11 BOOST_PARAMETER_KEYWORD(Tag
,a1
)
12 BOOST_PARAMETER_KEYWORD(Tag
,a2
)
22 template <typename ArgPack
> A(ArgPack
const & args
)
31 template <typename ArgPack
> B(ArgPack
const & args
)
32 : A((args
, param::a0
= 1))
40 test::A
a((param::a0
= 1, param::a1
= 13, param::a2
= 6));
41 test::B
b0((param::a1
= 13));
42 test::B
b1((param::a1
= 13, param::a2
= 6));