mirror of
https://github.com/boostorg/fusion.git
synced 2025-07-23 17:17:23 +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/fusion/sequence/intrinsic/at.hpp>
|
||||
#include <boost/fusion/sequence/container/list/cons.hpp>
|
||||
|
||||
#if !defined(FUSION_AT)
|
||||
#define FUSION_AT at_c
|
||||
@ -52,6 +53,12 @@ test()
|
||||
using namespace boost::fusion;
|
||||
using namespace test_detail;
|
||||
|
||||
nil empty;
|
||||
|
||||
FUSION_SEQUENCE<> empty0;
|
||||
|
||||
FUSION_SEQUENCE<> empty1(empty);
|
||||
|
||||
FUSION_SEQUENCE<int> t1;
|
||||
BOOST_TEST(FUSION_AT<0>(t1) == int());
|
||||
|
||||
|
Reference in New Issue
Block a user