]>
Commit | Line | Data |
---|---|---|
7c673cae FG |
1 | // Copyright Daniel Wallin 2006. Use, modification and distribution is |
2 | // subject to the Boost Software License, Version 1.0. (See accompanying | |
3 | // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) | |
4 | ||
5 | #include <boost/parameter/parameters.hpp> | |
6 | #include <boost/parameter/name.hpp> | |
7 | ||
8 | namespace parameter = boost::parameter; | |
9 | namespace mpl = boost::mpl; | |
10 | ||
11 | BOOST_PARAMETER_NAME(x) | |
12 | ||
13 | int main() | |
14 | { | |
15 | using namespace parameter; | |
16 | using boost::is_convertible; | |
17 | using mpl::_; | |
18 | ||
19 | parameters< | |
20 | optional< | |
21 | deduced<tag::x>, is_convertible<_,int> | |
22 | > | |
23 | >()("foo"); | |
24 | } | |
25 |