mirror of
https://github.com/boostorg/fusion.git
synced 2025-07-23 09:07:26 +02:00
testing zero length sequences have converting ctors
[SVN r38156]
This commit is contained in:
@ -7,6 +7,7 @@
|
|||||||
==============================================================================*/
|
==============================================================================*/
|
||||||
#include <boost/detail/lightweight_test.hpp>
|
#include <boost/detail/lightweight_test.hpp>
|
||||||
#include <boost/fusion/sequence/intrinsic/at.hpp>
|
#include <boost/fusion/sequence/intrinsic/at.hpp>
|
||||||
|
#include <boost/fusion/sequence/container/list/cons.hpp>
|
||||||
|
|
||||||
#if !defined(FUSION_AT)
|
#if !defined(FUSION_AT)
|
||||||
#define FUSION_AT at_c
|
#define FUSION_AT at_c
|
||||||
@ -52,6 +53,12 @@ test()
|
|||||||
using namespace boost::fusion;
|
using namespace boost::fusion;
|
||||||
using namespace test_detail;
|
using namespace test_detail;
|
||||||
|
|
||||||
|
nil empty;
|
||||||
|
|
||||||
|
FUSION_SEQUENCE<> empty0;
|
||||||
|
|
||||||
|
FUSION_SEQUENCE<> empty1(empty);
|
||||||
|
|
||||||
FUSION_SEQUENCE<int> t1;
|
FUSION_SEQUENCE<int> t1;
|
||||||
BOOST_TEST(FUSION_AT<0>(t1) == int());
|
BOOST_TEST(FUSION_AT<0>(t1) == int());
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user