Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: downloads/boost_1_34_1/libs/parameter/test/deduced_unmatched_arg.cpp @ 33

Last change on this file since 33 was 29, checked in by landauf, 16 years ago

updated boost from 1_33_1 to 1_34_1

File size: 601 bytes
Line 
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
8namespace parameter = boost::parameter;
9namespace mpl = boost::mpl;
10
11BOOST_PARAMETER_NAME(x)
12
13int 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
Note: See TracBrowser for help on using the repository browser.