update copyright notice

[SVN r37131]
This commit is contained in:
Joel de Guzman
2007-03-02 10:44:14 +00:00
parent f19c0b767d
commit 92e7e32ed8
534 changed files with 1097 additions and 1606 deletions

View File

@ -2,13 +2,18 @@
Copyright (c) 1999-2003 Jaakko J<>rvi
Copyright (c) 2001-2006 Joel de Guzman
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)
Distributed under 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/detail/lightweight_test.hpp>
#include <boost/fusion/sequence/intrinsic/at.hpp>
#include <boost/fusion/sequence/intrinsic/mpl.hpp>
#include <boost/preprocessor/cat.hpp>
#include <boost/mpl/insert_range.hpp>
#include <boost/mpl/vector.hpp>
#include <boost/mpl/begin.hpp>
#include <boost/mpl/equal.hpp>
#include <boost/static_assert.hpp>
#if !defined(FUSION_AT)
#define FUSION_AT at_c
@ -37,6 +42,24 @@ foo(int i)
return boost::fusion::FUSION_MAKE(i, i+1, i+2, i+3);
}
void test_mpl()
{
using namespace boost::fusion;
typedef FUSION_SEQUENCE<int, char> seq;
typedef
boost::mpl::insert_range<
boost::mpl::vector<>
, boost::mpl::end< boost::mpl::vector<> >::type
, seq
>::type
sequence;
typedef boost::mpl::equal<sequence, boost::mpl::vector<int, char> > equal;
BOOST_STATIC_ASSERT(equal::value);
}
void
test()
{
@ -67,7 +90,9 @@ test()
BOOST_TEST(i==1);
BOOST_TEST(c=='a');
BOOST_TEST(d>5.4 && d<5.6);
// returning a tuple with conversion
foo(2);
test_mpl();
}