]>
git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/parameter/test/macros.cpp
1 // Copyright David Abrahams, Daniel Wallin 2003. Use, modification and
2 // distribution is subject to the Boost Software License, Version 1.0.
3 // (See accompanying file LICENSE_1_0.txt or copy at
4 // http://www.boost.org/LICENSE_1_0.txt)
6 #include <boost/parameter.hpp>
7 #include <boost/parameter/macros.hpp>
8 #include <boost/bind.hpp>
9 #include <boost/static_assert.hpp>
10 #include <boost/ref.hpp>
19 BOOST_PARAMETER_FUN(int, f
, 2, 4, f_parameters
)
23 , p
[value
|| boost::bind(&value_default
) ]
24 #if BOOST_WORKAROUND(__DECCXX_VER, BOOST_TESTED_AT(60590042))
25 , p
[test::index
| 999 ]
45 test::values(S("foo"), S("bar"), S("baz"))
46 , S("foo"), S("bar"), S("baz")
51 test::values("foo", 666.222, 56)
52 , index
= boost::ref(x
), name
= "foo"