This commit was manufactured by cvs2svn to create branch 'RC_1_34_0'.

[SVN r35227]
This commit is contained in:
nobody
2006-09-20 15:03:36 +00:00
parent cc256f0bb3
commit 3397bafb4a
3 changed files with 187 additions and 0 deletions

View File

@@ -0,0 +1,60 @@
// Copyright Daniel Wallin 2006. Use, modification and distribution is
// subject to the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
#include <boost/parameter/parameters.hpp>
#include <boost/parameter/name.hpp>
#include <boost/parameter/binding.hpp>
#include <boost/type_traits.hpp>
#include "deduced.hpp"
namespace parameter = boost::parameter;
namespace mpl = boost::mpl;
BOOST_PARAMETER_NAME(x)
BOOST_PARAMETER_NAME(y)
BOOST_PARAMETER_NAME(z)
int main()
{
using namespace parameter;
using boost::is_same;
using boost::add_reference;
check<
parameters<
tag::x
, optional<
deduced<tag::y>
, is_same<
add_reference<mpl::_1>
, binding<mpl::_2,tag::x>
>
>
>
>(
(_x = 0, _y = 1)
, 0
, 1
);
check<
parameters<
tag::x
, optional<
deduced<tag::y>
, is_same<
add_reference<mpl::_1>
, binding<mpl::_2,tag::x>
>
>
>
>(
(_x = 0U, _y = 1U)
, 0U
, 1U
);
return 0;
}