some updates

[SVN r36555]
This commit is contained in:
Joel de Guzman
2007-01-01 02:23:51 +00:00
parent ef48d728ef
commit 2be540e903
200 changed files with 1744 additions and 1447 deletions

View File

@ -13,7 +13,7 @@
#define FUSION_AT at_c
#endif
namespace
namespace test_detail
{
// something to prevent warnings for unused variables
template<class T> void dummy(const T&) {}
@ -51,6 +51,7 @@ inline void
test()
{
using namespace boost::fusion;
using namespace test_detail;
FUSION_SEQUENCE<int> t1;
BOOST_TEST(FUSION_AT<0>(t1) == int());

View File

@ -22,7 +22,7 @@
#define FUSION_TIE BOOST_PP_CAT(FUSION_SEQUENCE, _tie)
#endif
namespace
namespace test_detail
{
// classes with different kinds of conversions
class AA {};
@ -41,6 +41,7 @@ void
test()
{
using namespace boost::fusion;
using namespace test_detail;
FUSION_SEQUENCE<int, char> t1(4, 'a');
FUSION_SEQUENCE<int, char> t2(5, 'b');

View File

@ -19,7 +19,7 @@
#define FUSION_MAKE BOOST_PP_CAT(make_, FUSION_SEQUENCE)
#endif
namespace
namespace test_detail
{
// something to prevent warnings for unused variables
template<class T> void dummy(const T&) {}
@ -34,6 +34,7 @@ void
test()
{
using namespace boost::fusion;
using namespace test_detail;
{
FUSION_SEQUENCE<int, char> t1 = FUSION_MAKE(5, 'a');

View File

@ -13,7 +13,7 @@
#define FUSION_AT at_c
#endif
namespace
namespace test_detail
{
// no public default constructor
class foo
@ -38,6 +38,7 @@ void
test()
{
using namespace boost::fusion;
using namespace test_detail;
FUSION_SEQUENCE<int, float, bool, foo> t1(5, 12.2f, true, foo(4));
FUSION_AT<0>(t1) = 6;

View File

@ -21,7 +21,7 @@
#define FUSION_TIE BOOST_PP_CAT(FUSION_SEQUENCE, _tie)
#endif
namespace
namespace test_detail
{
// something to prevent warnings for unused variables
template<class T> void dummy(const T&) {}
@ -49,6 +49,7 @@ void
test()
{
using namespace boost::fusion;
using namespace test_detail;
int a;
char b;

View File

@ -20,7 +20,7 @@
#define FUSION_VALUE_AT(S, N) result_of::value_at_c<S, N>
#endif
namespace
namespace test_detail
{
// something to prevent warnings for unused variables
template<class T> void dummy(const T&) {}
@ -32,6 +32,7 @@ void
test()
{
using namespace boost::fusion;
using namespace test_detail;
double d = 2.7;
A a;