1 // Copyright Daniel Wallin 2006. 2 // Distributed under 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) 5 6 #include <boost/parameter/parameters.hpp> 7 #include <boost/parameter/optional.hpp> 8 #include <boost/parameter/deduced.hpp> 9 #include <boost/parameter/name.hpp> 10 #include <boost/mpl/placeholders.hpp> 11 #include <boost/type_traits/is_convertible.hpp> 12 BOOST_PARAMETER_NAME(x)13BOOST_PARAMETER_NAME(x) 14 15 int main() 16 { 17 boost::parameter::parameters< 18 boost::parameter::optional< 19 boost::parameter::deduced<tag::x> 20 , boost::is_convertible<boost::mpl::_,int> 21 > 22 >()("foo"); 23 return 0; 24 } 25 26