deduced_unmatched_arg.cpp 684 B

12345678910111213141516171819202122232425
  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. #include <boost/parameter/parameters.hpp>
  6. #include <boost/parameter/optional.hpp>
  7. #include <boost/parameter/deduced.hpp>
  8. #include <boost/parameter/name.hpp>
  9. #include <boost/mpl/placeholders.hpp>
  10. #include <boost/type_traits/is_convertible.hpp>
  11. BOOST_PARAMETER_NAME(x)
  12. int main()
  13. {
  14. boost::parameter::parameters<
  15. boost::parameter::optional<
  16. boost::parameter::deduced<tag::x>
  17. , boost::is_convertible<boost::mpl::_,int>
  18. >
  19. >()("foo");
  20. return 0;
  21. }