forked from boostorg/fusion
some updates
[SVN r36555]
This commit is contained in:
@ -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());
|
||||
|
@ -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');
|
||||
|
@ -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');
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
Reference in New Issue
Block a user